I have following line to zip/backup my home folder
sudo 7z a -p /backups/`date "+%Y%m%d"`.backup.7z ~
Please advise how would I add another folder in the same line to be backed up?
Currently it is backing up my home folder ~
I would like to add also /etc/folder1
in the line.
~/.cache
, which true to its name contains automatically generated data (e. g. thumbnail lists or search indices) that will dimply be regenerated when it goes missing. On my system that's currently around 30 GB. See What files and directories can be excluded from a backup of the home directory? for more. – David Foerster Dec 20 '17 at 16:11