Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am new to these backup things. I have try Backuppc and rsnashot. Backuppc was cool, with web frontend.

My probleam: I don't have any backup servers I just have server and ftp-disk. I wanted to backup my server to ftp-disk, but I'm not sure how to do it? Can I use rsync?

share|improve this question
    
I think this post has exactly what you want: askubuntu.com/questions/2596/comparison-of-backup-tools –  omnidan Apr 13 '11 at 13:30
    
What do you mean "ftp-disk"? –  psusi Apr 13 '11 at 13:48
add comment

5 Answers

Another solution, if you have lftp:

lftp -e "mirror -R src_local_folder dest_folder_on_ftp_server; exit" -u ftp_user[,ftp_pass] ftp_server

Support SSL/TLS

share|improve this answer
add comment

you can mount the ftp resource as a local

curlftpfs [user@]host:[dir] mountpoint [options]

and use rsync as to local directories

share|improve this answer
add comment

rsync works over ssh, but not over FTP. Full discussion here:

http://serverfault.com/questions/24622/how-to-use-rsync-over-ftp

(Short answer in case serverfault ever goes down: you can't. Try lftp.)

share|improve this answer
add comment

Another solution you might want to look into is a package called backup-manager (http://www.backup-manager.org/).

This is a great script and lets you leverage multiple back up methods. Rsync, SSH, FTP, and even Amazon S3. Very simple to configure and you

You can do a aptitude search backup-manager to get more information

share|improve this answer
    
This look interesting. I will try this. Thanks –  user13123 Apr 14 '11 at 4:16
add comment

Little script for that that can be useful, mirror a local directory to distant with given configuration @ beginning of script

#!/bin/bash
#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#
#       DESCRIPTION: Mirrors local site and remote site
#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
FTP_HOST=aFtpHost.org
FTP_USER=YourUserHere
FTP_PWD=yourPasswdHere
LOCAL_SOURCE_PATH=/home/myName/locations/music/${1} #param 1 from script for example
REMOTE_DEST_PATH=/htdocs/aDirectory

EXCLUDE_FILES_LIST=".svn empty anotherDirectory"

# Construct excludes
for exclude in ${EXCLUDE_FILES_LIST}; do
EXCLUDES="-x ${exclude} ${EXCLUDES}"
done

# -R, --reverse       reverse mirror (put files)
# mirror -e
#--delete        delete files not present at remote site
lftp ftp://${FTP_USER}:${FTP_PWD}@${FTP_HOST} -e "mirror ${EXCLUDES} -R ${LOCAL_SOURCE_PATH} ${REMOTE_DEST_PATH} ; quit"
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.