New answers tagged rsync
0
votes
Rsync daemon error
For what it's worth, I'd check the SELinux context on your script file
/usr/etc/UHS_FolderMonitor.ksh . I had a similar problem with a systemd unit file using rsync.
Also see man 8 rsync_selinux (...
- 121
3
votes
rsync does not create destination folder as I want
Let's look at your rsync command. You've omitted the options - which are important - so I've assumed you're using either -a (--archive) or -rt (--recursive --times), and I'll add -v (--verbose) for ...
- 98.7k
3
votes
Accepted
rsync does not create destination folder as I want
Don't rsync the files manually. Use the --files-from= option to include your text file.
Rules for directories:
Only the directory is created if the path doesn't end with a trailing /
To sync a dir's ...
- 23.4k
0
votes
How to delete folder after rsync --remove-source-files?
I like to do my empty folder cleanup with some sanity. I run:
find folder -type d -empty -exec rmdir {} \;
repeat as many times as necessary to recursively remove empty subfolders, and ONLY EMPTY ...
- 11
1
vote
Rsync that handles moves sensibly
Question is old, but relevant.
Here is the tool you're looking for:
rsync-sidekick
This syncs 3 types of changes:
Change in file modification timestamp (in case you change timestamps of photos en ...
- 111
0
votes
Accepted
Using rsync for specific files and directories
Here is an example using an rsync filter file, use it with option --filter='dir-merge /.rsync-filter' or simply -F.
Put the file .rsync-filter into your rsync source directory (your $HOME) with the ...
- 23.4k
0
votes
Using rsync for specific files and directories
I might want to back up files in ~/.config/ABC/ except ~/.config/ABC/ex
How can I do such a thing using rsync?
Include the files and directories that you want
Exclude the files and directories that ...
- 98.7k
1
vote
Accepted
rsyncd service ProtectSystem=off has no effect
Let's start with a status check
systemctl show rsync | grep -E 'ProtectSystem|NoNewPrivileges'
On my unmodified system this returns
ProtectSystem=full
NoNewPrivileges=yes
I've picked up on ...
- 98.7k
3
votes
Accepted
How to rsync only newer (not new) files that match a pattern
The R in your options to the command is for relative paths, which I think means relative to where the command is invoked from.
The first thing copied is the drivers directory. I think that this is ...
- 498
2
votes
Accepted
Failed to Start After Moving /var to Another Drive
In recovery mode:
chroot into your system
mount /var if it's not mounted
restorecon -rv /var and then try booting normally again.
Make sure your /var entry in /etc/fstab is correct.
0
votes
Copying faster than cp?
For copying a large number of directories, you can actually do better than cp by parallelizing the copies and using copy acceleration.
Parallelizing the copies will ensure you saturate your drive. ...
- 121
0
votes
Accepted
Intermittent ssh_exchange_identification error using rsync in backup script, why?
Since the error message says "Connection closed by remote host", you should look at the remote host's logs: there should be a log message from sshd describing exactly why it decided to ...
- 77.6k
5
votes
Accepted
Restarting rsync
Yes, but painfully slowly. Remove the -c flag so they rsync doesn't have to recalculate checksums for all previously copied files
- 98.7k
0
votes
rsync update from FAT32 not working correctly
... but if I check the dates of the transferred files, they are the same!
The dates that are normally displayed for files, using a dir listing, are the modification times.
Did you try the --crtimes, -...
- 11
Top 50 recent answers are included
Related Tags
rsync × 1955backup × 286
linux × 206
ssh × 202
bash × 113
file-copy × 101
shell-script × 95
permissions × 84
synchronization × 83
files × 75
ubuntu × 74
scp × 73
cp × 64
find × 54
shell × 47
debian × 46
symlink × 42
cron × 40
macos × 38
centos × 37
filesystems × 37
command-line × 34
nfs × 27
remote × 27
file-transfer × 26