Question about the sync command

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

rclone v1.59.0

  • os/version: debian bookworm/sid (64 bit)
  • os/kernel: 5.17.15-76051715-generic (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.18.3
  • go/linking: static
  • go/tags: none

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

Gdrive

I got a question about the sync command.

Let's assume I have the following folder structure:

Pictures and Videos in root

vacation in Pictures and Movies in Videos (/Pictures/vacation/January,February,March etc) (/Videos/Movies/Movie1,Movie2 etc...)
Files are placed within those folders.

If I sync the /Pictures/vacation/January folder to the root of the crypt, will all other files be removed?

rclone sync localfolder crypt:

Do I have to use the following command (if changing files to January folder) instead?

rclone sync localfolder crypt:Pictures/vacation/January

or is rclone smart enough to recognize I just changed the January content? Would be great if I could sync to the root because therefore I don't have to give the full path.

Sync makes a destination look the same as the source.

So

Crypt: would look identical to localfolder.

Run the commands with --dry-run at the end and it'll show you what is going to happen. If that's what you want, you'd remove dry-run.

The second command is the same scenario as the destination will mirror the source.