Unleash Your Server Potential with Expert Insights
Over $120 Million in Payouts!Sponsored by: FundingTicks
Sponsored by: FundingTicks
Category: Bash
backup sh with #!/bin/bash\ntar -czf /backup/site-$(date +%F) tar gz /var/www make executable with chmod +x backup sh and add to cron with crontab -e: 0 2 * * * /path/to/backup sh Test with /backup sh—expect a tarball Secures site data on DigitalOcean