Questions tagged [rsync]
rsync is a tool to efficiently copy directory hierarchies, locally or remotely, with powerful filters to decide what gets copied.
2,137 questions
1
vote
1
answer
51
views
SSH freezes on login after server banner
Trying to login to my local server with user1, the shell freezes after the login banner:
Linux server 6.1.0-28-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.119-1 (2024-11-22) x86_64
The programs included ...
1
vote
0
answers
27
views
How to get `rsync --link-dest=` hard-link moved/renamed files
I am trying to set up rsnapshot for backing up a remote server.
However, I realize that my issue is with rsync (rsnapshot’s
back-end), not with rsnapshot itself. Thus I am focusing the question on
...
0
votes
1
answer
23
views
How to download files via rsync through an intermediate host, using intermediate host's SSH keys to connect to source?
I want the exact same thing as explained in this answer: SSH from A through B to C, using private key on B.
But I want to do it with rsync, and I cannot figure out how to adopt the solution there for ...
0
votes
1
answer
62
views
Why is the logic handled differently in rsync '--delete src/*', '--delete src/' and '--delete src/.'
I want to copy and synchronize directories using rsync with --delete or --delete-excluded in a bash script or shell on a Debian system.
The directory was not synchronized at first, meaning the deleted ...
5
votes
1
answer
210
views
Removing /dev/fd from backup
I accidentally rsynced (with symlink following) my entire / to another disk.
I was running rsync as a regular user.
Realizing my mistake, I wanted to clean up the backup.
It deleted all the files, ...
5
votes
2
answers
364
views
Automatic or manual screen session termination
I've created a screen session and ran rsync within that session:
screen -S rsync_backup
rsync -rvnc data/ data2 >rsync_out-4.txt 2>rsync_outErr-4.txt
I used the top command for progress ...
0
votes
0
answers
45
views
Comparison of content of two folders on remote cluster with rsync command
There is my home directory and its backup on the remote cluster.I used rsync command to check if home directory and its backup are completely identical:
rsync -rvnc data/ data2 >rsync_out-4.txt 2&...
0
votes
1
answer
22
views
rsync daemon exits silently
I'm eventually trying to set up an rsync-over-ssh server.
On the server, when I run rsync --daemon --no-detach --config=/etc/rsyncd.conf -v . it just exits immediately with status 10: "Error in ...
0
votes
1
answer
28
views
How can I use rsync to set the remote files owner to a userid inside a rootless Podman/Docker container
rsync supports --chown, but you need something like podman unshare in order for it to correctly deal with subuids. How can I combine those (on a remote host) ?
17
votes
3
answers
1k
views
Using rsync to copy only files that have changed, not files that are new
I've got two directories, call them "source" and "dest", that have some files in common. There are also a number of files present in one but not the other. I'd like to copy files ...
0
votes
1
answer
57
views
Can running a local rsyncd make sync more efficient?
I have a network of Linux machines that are all, for the purposes of what I'm doing, clones of each other. There is one "master" node from which all others synchronise a directory at regular ...
1
vote
0
answers
38
views
rsync, relative paths not working when using filter list file and include list file
I'm working to rsync between my home file server and my parents home file server so we can act as off site backups for each other. However we don't want to backup everything, so I'm hoping to use a ...
0
votes
2
answers
84
views
How to Rsync anything with its name having exact number of consecutive digits
I have the following directories:
1
12
123
1234567
1234566
1234555
121
I want to rsync the directories with exactly 7 digits in the name. (That would be 1234567, 1234566, and 1234555 from the above ...
0
votes
0
answers
20
views
Why does rsync think a file is up to date when its destination file doesn't even exist? [duplicate]
I'm trying to rsync a directory to another local copy. It says one file is up to date and does not copy it, even though it doesn't exist in the destination directory.
I have this file in ~/Documents/...
1
vote
1
answer
40
views
Rsync on a 2 micro sd card unit combined as an luks encrypted LVM, on top fscrypt: Fscrypt seems to lock from time to time, how to avoid?
Hope anyone has a hint, if fscrypt which serves for me as a replacement for the error prone ecyryptfs for my backed up home folder (which is in a different PV group, luks encrypted,ecryptfs home ...