Created
April 13, 2011 01:54
-
-
Save grahamg/916821 to your computer and use it in GitHub Desktop.
Backup some selected .tar.gz files to a remote ftp server
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
FTPU="user" # ftp login name | |
FTPP="passwd" # ftp password | |
FTPS="ftp.server.com" # remote ftp server | |
FTPF="/home/backup/" # remote ftp server directory for $FTPU & $FTPP | |
LOCALD="backup.$(date +%d.%m.%y).tgz" | |
ncftpput -m -u $FTPU -p $FTPP $FTPS $FTPF $LOCALD |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment