Hello,
I intend make a complete mirror between hard drives on same computer with ubuntu server. Which configuration should I use to make things security and correctly?
sudo rsync -avz /home/user/origin/ /media/pen/destiny/
sudo rsync -avz --delete-before /home/user/origin/ /media/pen/destiny/
sudo rsync -avz --delete-after /home/user/origin/ /media/pen/destiny/
sudo rsync -avz --progress --delete /home/user/origin/ /media/pen/destiny/
Should I put slash "/" on end of directory path?
This is the list directory contents I have on my system regarding folders origin and destiny:
Code:
root@matt:/home/matt# ls -la disks/main_disks/
total 40
drwxrwxr-x 5 matt users 4096 Oct 19 2021 .
drwxrwxr-x 4 matt matt 4096 Aug 28 2019 ..
drwxrwxr-x 420 matt users 12288 Sep 4 21:04 disk2
root@matt:/home/matt# ls -la disks/mirror_disks/
total 16
drwxrwxr-x 4 matt matt 4096 May 19 2021 .
drwxrwxr-x 4 matt matt 4096 Aug 28 2019 ..
drwxrwxr-x 2 root root 4096 May 19 2021 mirror_disk1
Thanks in advance