0
I am using manjaro. Below command i use to backup my whole system.
rsync -aAXv --delete --exclude-from="excludefrombackup" / /home/vipin/mydata/backup
Above command will copy the my root (/) and backup it to a different location.
The rsync copy all the files and folders exactly the same structure and permissions.
When i execute same command second time it will modify only the changes done to my system to the backup location. This is working fine.
But now i want to zip my backup, When i do the second time update it should delete from the zip without extracting. Is it possible or Do i need to do like this
- Extract the zip file
- Run rsync
- compress again.
Do anyone having a script for this. I want to achieve this through script.
1It seems like you want to use rsync for something it's not build for. I would recommend looking into real backup tools which supports compression out of the box. – Mikael Kjær – 2018-06-03T09:21:14.640
@mikael kjaer Thanks for the reply. Because of some security restriction i need to right the script for this. is to possible to do rsync or any other command? – Vipin – 2018-06-03T21:16:47.207