Linux KNOWLEDGE by Spreech 

 home |
Too Cool for Internet Explorer

Script: ftp Backup local herunterladen (backup5.ssh)

Bloged in Befehle,Server by manuel.schwab Sonntag April 29, 2007

#!/bin/bash
ftp -n [HOSTNAME] << EOF
user [USERNAME] [PASSWORT]
bin
lcd /home/backup/server/tausch/
prompt
mget *.*
mdelete *.*
EOF
mkdir /home/backup/server/$(date +%d).$(date +%m).$(date +%Y)/
cd /home/backup/server/tausch/
cp *.* /home/backup/server/$(date +%d).$(date +%m).$(date +%Y)/
rm *.*

Keine Kommentare »

No comments yet.

Leave a comment


RSS feed for comments on this post. TrackBack URI

Powered by Wordpress, theme by Dimension 2k