Cobra Forum

Linux Specialised Support => Security => Topic started by: kalpana on Nov 04, 2023, 05:14 AM

Title: duplicity use rsync to copy files to another hard drive
Post by: kalpana on Nov 04, 2023, 05:14 AM
Does this work like I think? Will this copy the home directory to the harddrive mounted at /home/3tb using rsync? I need the archive from rsync to keep the permissions.
Code:

PASSPHRASE="GPG_PASSWORD" duplicity --full-if-older-than 7D --encrypt-key 5263B0FA8C51F3EDEC73B92750AFE64262F13506 --verbosity 8 --gpg-options='--compress-algo=bzip2 --bzip2-compress-level=9' --rsync-options '-avPh' /home --exclude=/home/user.cache file:///home/3TB/rsyncHOME