Dasdan.be Logo Top Dasdan.be Logo Left
 
Main Menu
Who's Online
8 user(s) are online (3 user(s) are browsing Forum)

Members: 1
Guests: 8

dasdan, more...
New Members
Dasdan.be Forum Index
   Software
     Linux / Unix
   Linux FTP backup script

Browsing this Thread:   1 Anonymous Users

 

 Bottom   Previous Topic   Next Topic
  •  Rate Thread
      Rate this Thread
      Excellent
      Good
      Average
      Bad
      Terrible
Poster Thread
Linux FTP backup script
#1
Webmaster
Joined: 20/1/2005
From Ghent /Gent
Posts: 566
Level : 21
HP : 0 / 521
MP : 188 / 8582
EXP : 86
Group:
Webmasters
Registered Users
Offline
Below a simple linux FTP backup script.
You just have to change the variables at the beginning of the script.

You can easily schedule this script with cron.

Quote:


#! /bin/sh

#FTP Backup Script : written by Kevin Wood (www.dasdan.be)

DESTINATIONSERVER=10.10.10.10
DESTINATIONDIR=/backups/
DIRTOBACKUP=/directorytobackup
LOGIN=backup
PASS=backup

ftp -n $DESTINATIONSERVER <<BACKUPSESSION
user $LOGIN $PASS
bin
hash
lcd $DIRTOBACKUP
cd $DESTINATIONDIR
prompt
mput *
bye
BACKUPSESSION
shift
exit

Posted on: 5/3/2009 19:20
Create PDF from Post Print
Top
 Top   Previous Topic   Next Topic

 





©Copyright 2005-2009