[olug] Backing up a FTP server?

Cheyenne Deal deal.cheyenne at gmail.com
Wed Mar 18 05:01:57 UTC 2009


I have been backing up my game server through ftp, (the only way I can
access it) and using a shell script to download it weekly. I have modified
my script to download the whole server and now wget keeps erroring out. It
keeps saying that the directory can not be found, even though that the
script creates a folder with the day's date in the file name. Below is a
modified version of the script, with passwords and accounts removed. I have
been writing and rewriting these scrips and getting nowhere. Please can
anyone help me.


cd "/jmsg_bkp/JMSG-GM10-01/"
> mkdir BKP-Full$(date +%Y%m%d)
> wget --user=88888 --password=88888 -o
> "/jmsg_bkp/JMSG-GM10-01/BKP-Full$(date +%Y%m%d)/scenes_log.txt" -r
> ftp://72.233.56.5 /72.233.56.5_port_27016/garrysmod/scenes/*
> wget --user=88888 --password=88888 -o
> "/jmsg_bkp/JMSG-GM10-01/BKP-Full$(date +%Y%m%d)/scripts_log.txt" -r
> ftp://72.233.56.5/72.233.56.5_port_27016/garrysmod/scripts/*
> wget --user=88888 --password=88888 -o
> "/jmsg_bkp/JMSG-GM10-01/BKP-Full$(date +%Y%m%d)/settings_log.txt" -r
> ftp://72.233.56.5/72.233.56.5_port_27016/garrysmod/settings/*
> wget --user=88888 --password=88888 -o
> "/jmsg_bkp/JMSG-GM10-01/BKP-Full$(date +%Y%m%d)/shaders_log.txt" -r
> ftp://72.233.56.5/72.233.56.5_port_27016/garrysmod/shaders/*
> mv 72.233.56.5/72.233.56.5_port_27016/garrysmod/scenes"/jmsg_bkp/JMSG-GM10-01/BKP-Full$(date +%Y%m%d)"
> mv 72.233.56.5/72.233.56.5_port_27016/garrysmod/scripts"/jmsg_bkp/JMSG-GM10-01/BKP-Full$(date +%Y%m%d)"
> mv 72.233.56.5/72.233.56.5_port_27016/garrysmod/settings"/jmsg_bkp/JMSG-GM10-01/BKP-Full$(date +%Y%m%d)"
> mv 72.233.56.5/72.233.56.5_port_27016/garrysmod/shaders"/jmsg_bkp/JMSG-GM10-01/BKP-Full$(date +%Y%m%d)"
> touch "JMSG-GM10-01 Full Backup Part 6 Finished $(date +%T) $(date
> +%Y-%m-%d)"
>



More information about the OLUG mailing list