gadasin/setup_backup_cron.sh

5 lines
102 B
Bash
Executable File

mkdir backups
(crontab -l 2>/dev/null; echo "0 4 * * * $(pwd)/backup.sh") | crontab -
echo "Success"