Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I resync from a file and delete unnecessary files/directories in the destination directory #672

Open
grey-109 opened this issue Nov 22, 2024 · 0 comments

Comments

@grey-109
Copy link

Hello!

I synchronize files by list using the --files-from command. The list of files changes from time to time.

After some time, I found a bunch of files in the target folder that were copied there for a long time.

Tell me, what should the command look like that, during synchronization, deletes in the target folder those files that are not in the list with the --files-from option?

I spent several hours on various experiments and searching for a solution on the Internet, but I still haven't found a working way to run rsync.

Tell me, what am I doing wrong?

Command: rsync --itemize-changes --files-from=1.txt --delete-excluded 192.168.1.1::backups /cygdrive/e/backupsdir/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant