andy@7_/etc$ zip crontab.zip crontab
zip I/O error: Permission denied
zip error: Could not create output file (crontab.zip)
I am the owner of crontab.
andy@7_/etc$ zip crontab.zip crontab
zip I/O error: Permission denied
zip error: Could not create output file (crontab.zip)
I am the owner of crontab.
Can you write in the /etc dir?
No, I can not create any new files in /etc.
first option, you use sudo so that you can write in /etc
second option, you create the zip file in your home dir
cd /etc ; sudo zip andy.zip crontab
cd ~ ; zip andy.zip /etc/crontab
Thanks.
cd /etc
echo *** | sudo -S zip crontab.zip crontab
rsync --progress -r -u crontab.zip $Backup_Directory