Moving FCP libraries

What is the problem you are having with rclone?

Moving Final Cut Pro libraries. Finder on MacOS seems to only copy, I want to make sure I have moved my footage.

Run the command 'rclone version' and share the full output of the command.

❯ rclone version
rclone v1.65.2

  • os/version: darwin 14.3.1 (64 bit)
  • os/kernel: 23.3.0 (arm64)
  • os/type: darwin
  • os/arch: arm64 (ARMv8 compatible)
  • go/version: go1.21.6
  • go/linking: dynamic
  • go/tags: none

Which cloud storage system are you using? (eg Google Drive)

Local to USB

The command you were trying to run (eg rclone copy /tmp remote:tmp)

rclone move tennis.fcpbundle /Volumes/hendryExtreme/

Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.

❯ rclone config redacted
2024/03/06 14:44:37 NOTICE: Config file "/Users/hendry/.config/rclone/rclone.conf" not found - using defaults
; empty config

Problem

First it doesn't recreate the folder /Volumes/hendryExtreme/tennis.fcpbundle as I would expect it to. Next issue is .fcpcache is some symlink. It can be ignored.

2024/03/06 14:37:34 NOTICE: .fcpcache: Can't follow symlink without -L/--copy-links

But by default the source directory is still left because of it.

If I follow it, all hell breaks loose!

❯ rclone move -L tennis.fcpbundle /Volumes/hendryExtreme/
2024/03/06 14:40:37 NOTICE: Config file "/Users/hendry/.config/rclone/rclone.conf" not found - using defaults
2024/03/06 14:40:37 ERROR : .fcpcache/__Sync__: Couldn't move: rename /Users/hendry/Movies/tennis.fcpbundle/.fcpcache/__Sync__ /Volumes/hendryExtreme/.fcpcache/__Sync__: no such file or directory
2024/03/06 14:40:37 ERROR : .fcpcache/CurrentVersion.plist: Couldn't move: rename /Users/hendry/Movies/tennis.fcpbundle/.fcpcache/CurrentVersion.plist /Volumes/hendryExtreme/.fcpcache/CurrentVersion.plist: no such file or directory
2024/03/06 14:40:37 ERROR : .fcpcache/CurrentVersion.flexolibrary: Couldn't move: rename /Users/hendry/Movies/tennis.fcpbundle/.fcpcache/CurrentVersion.flexolibrary /Volumes/hendryExtreme/.fcpcache/CurrentVersion.flexolibrary: no such file or directory
2024/03/06 14:40:37 ERROR : .fcpcache/Settings.plist: Couldn't move: rename /Users/hendry/Movies/tennis.fcpbundle/.fcpcache/Settings.plist /Volumes/hendryExtreme/.fcpcache/Settings.plist: no such file or directory
2024/03/06 14:40:37 ERROR : .fcpcache/.fcpcache/.lock: Couldn't move: rename /Users/hendry/Movies/tennis.fcpbundle/.fcpcache/.fcpcache/.lock /Volumes/hendryExtreme/.fcpcache/.fcpcache/.lock: no such file or directory
2024/03/06 14:40:37 ERROR : .fcpcache/.fcpcache/.lock-info: Couldn't move: rename /Users/hendry/Movies/tennis.fcpbundle/.fcpcache/.fcpcache/.lock-info /Volumes/hendryExtreme/.fcpcache/.fcpcache/.lock-info: no such file or directory
2024/03/06 14:40:37 ERROR : .fcpcache/.fcpcache/__Sync__: Couldn't move: rename /Users/hendry/Movies/tennis.fcpbundle/.fcpcache/.fcpcache/__Sync__ /Volumes/hendryExtreme/.fcpcache/.fcpcache/__Sync__: no such file or directory
2024/03/06 14:40:37 ERROR : .fcpcache/.fcpcache/CurrentVersion.flexolibrary: Couldn't move: rename /Users/hendry/Movies/tennis.fcpbundle/.fcpcache/.fcpcache/CurrentVersion.flexolibrary /Volumes/hendryExtreme/.fcpcache/.fcpcache/CurrentVersion.flexolibrary: no such file or directory
2024/03/06 14:40:37 ERROR : .fcpcache/.fcpcache/CurrentVersion.plist: Couldn't move: rename /Users/hendry/Movies/tennis.fcpbundle/.fcpcache/.fcpcache/CurrentVersion.plist /Volumes/hendryExtreme/.fcpcache/.fcpcache/CurrentVersion.plist: no such file or directory
2024/03/06 14:40:37 ERROR : .fcpcache/.fcpcache/Settings.plist: Couldn't move: rename /Users/hendry/Movies/tennis.fcpbundle/.fcpcache/.fcpcache/Settings.plist /Volumes/hendryExtreme/.fcpcache/.fcpcache/Settings.plist: no such file or directory
2024/03/06 14:40:37 ERROR : .fcpcache/.fcpcache/.fcpcache/.lock: Couldn't move: rename /Users/hendry/Movies/tennis.fcpbundle/.fcpcache/.fcpcache/.fcpcache/.lock /Volumes/hendryExtreme/.fcpcache/.fcpcache/.fcpcache/.lock: no such file or directory
2024/03/06 14:40:37 ERROR : .fcpcache/.fcpcache/.fcpcache/.lock-info: Couldn't move: rename /Users/hendry/Movies/tennis.fcpbundle/.fcpcache/.fcpcache/.fcpcache/.lock-info /Volumes/hendryExtreme/.fcpcache/.fcpcache/.fcpcache/.lock-info: no such file or directory
2024/03/06 14:40:37 ERROR : .fcpcache/.fcpcache/.fcpcache/__Sync__: Couldn't move: rename /Users/hendry/Movies/tennis.fcpbundle/.fcpcache/.fcpcache/.fcpcache/__Sync__ /Volumes/hendryExtreme/.fcpcache/.fcpcache/.fcpcache/__Sync__: no such file or directory
2024/03/06 14:40:37 ERROR : .fcpcache/4-03-2024/CurrentVersion.fcpevent: Failed to calculate src hash: hash: failed to open: open /Users/hendry/Movies/tennis.fcpbundle/.fcpcache/4-03-2024/CurrentVersion.fcpevent: no such file or directory
2024/03/06 14:40:37 ERROR : .fcpcache/4-03-2024/CurrentVersion.fcpevent.lipeguj5.partial: corrupted on transfer: md5 hash differ "" vs "83bf0bca218500a5f218052a26b7861f"```

So long story short, I'm looking for the command to move the directory and make sure nothing is left on the source.

hi,

maybe the docs for move are not clear enough.
"Moves the contents of the source directory to the destination directory"

but the docs for copy seem to clear.
"Note that it is always the contents of the directory that is synced, not the directory itself. So when source:path is a directory, it's the contents of source:path that are copied, not the directory name and contents."

so try to specify the dest dir like so.
rclone move -L tennis.fcpbundle /Volumes/hendryExtreme/tennis.fcpbundle

.fcpcache - what do you want rclone to do with that dir, ignore it, follow the link, move/preserve the link or what?

Ignore it since following it makes it go in some crazy loop. It's a shame it can't detect it's in some crazy loop!

if the OP ignores it, then the problem remains source directory is still left because of it
so the OP might want --links

what do you think?

Oh right, so how would I ignore it and delete it once moved? && rm ? Urgh

sorry, not an expert with links. maybe someone else has a better suggestion.

if you ignore it, then you cannot remove it. did you see my suggestion --links ?

or script around it.

  1. rclone move
  2. if not error, then rclone purge /Users/hendry/Movies/tennis.fcpbundle/.fcpcache

Thanks --links works!

My script ended up being something like:

#!/bin/bash
dest_dir="/Volumes/hendryExtreme"

# Set the source directory
src_dir=$(du -sh -- *.fcpbundle/ | sort -rh | fzf --prompt "Select library to move to $dest_dir" --bind 'enter:execute(echo {2})+abort')

if [ -z "$src_dir" ]; then
  echo "User canceled. Exiting script."
  exit 1
fi

# Check free disk space on the destination directory
free_space=$(df -h "$dest_dir" | awk 'NR==2 {print $4}')

echo "Free disk space on $dest_dir: $free_space"

# Get the size of the source directory
dir_size=$(du -sh "$src_dir" | cut -f1)

echo "Size of $src_dir: $dir_size"

# Confirm the move operation
read -p "Do you want to move $src_dir to $dest_dir/$(basename "$src_dir")? (y/n): " confirm

if [ "$confirm" = "y" ]; then
	# Move the directory using rclone
	if rclone move --links "$src_dir" "$dest_dir/$(basename "$src_dir")"
	then
		echo "Move completed successfully!"
		# show the new size of the source directory
		if test $(du -sh "$src_dir" | cut -f1) -eq 0
		then
			rclone purge "$src_dir"
		fi
	else
		echo "Error: Failed to move the directory."
	fi
else
	echo "Move operation canceled."
fi

thanks for the update and for sharing the script.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.