When I run either of these commands, I get the error rsync symlink failed: Operation not permitted (1)
:
sudo rsync -aAXv --delete --exclude=/dev/* --exclude=/proc/* --exclude=/sys/* --exclude=/tmp/* \
--exclude=/run/* --exclude=/mnt/* --exclude=/media/* --exclude="swapfile" --exclude="lost+found" \
--exclude=".cache" --exclude="Downloads" --exclude=".VirtualBoxVMs" --exclude=".ecryptfs" /source \
/destination
or
sudo rsync -rltzuv --delete --exclude=/dev/* --exclude=/proc/* --exclude=/sys/* --exclude=/tmp/* \
--exclude=/run/* --exclude=/mnt/* --exclude=/media/* --exclude="swapfile" --exclude="lost+found" \
--exclude=".cache" --exclude="Downloads" --exclude=".VirtualBoxVMs" --exclude=".ecryptfs" / \
/media/hanif/CEDF-4BFB/Backup
Neither of these work. They both show the same error:
rsync symlink failed: Operation not permitted (1)
Can anybody help me to get this backing up properly?
-K
option see here: https://unix.stackexchange.com/questions/116775/how-to-copy-directory-structure-without-removing-symlinks – George Udosen May 13 '18 at 19:04rsync -haxAX --stats --delete --info=progress2 --info=name0 /* "$TargetMnt" --exclude={/dev/*,/proc/*,/sys/*,/tmp/*,/run/*,/mnt/*,/media/*,/lost+found}
– WinEunuuchs2Unix May 13 '18 at 19:29rsync
is not permitted to create symlinks under/media/hanif/CEDF-4BFB/Backup/
. Please [edit] and provide the output ofstat /media/hanif/CEDF-4BFB/Backup/
. – dessert May 14 '18 at 06:21