Over the years I’ve used all sorts of various scripts to automate mundane processes and backup procedures. Today I’m sharing a simple .bat file that xcopy’s 2 folders to a backup location. This script can easily be added to the windows scheduler to run at desired intervals. @echo off cls set staffbackup=e:\NAS-BACKUP\staff set groupbackup=e:\NAS-BACKUP\groups set… Read more »
Posts Tagged: script
Linux Tip: Create a bash script to archive web folders and mysql databases locally and remotely
Update – May 2013: I’ve received a few emails asking how to prevent this script from continuously eating up disk space… Rather than re-invent the wheel, I just use built in Linux commands in my root crontab that run once a day: 0 4 * * * find /home/tim/backups/ -mtime +10 -exec rm {} \;… Read more »