Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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: – omnidan Apr 13 '11 at 13:30
What do you mean "ftp-disk"? – psusi Apr 13 '11 at 13:48

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

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

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

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

share|improve this answer

Another solution you might want to look into is a package called backup-manager (

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
Link goes to a Chinese page – ETL Mar 18 '15 at 23:10
While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. – David Foerster Mar 19 '15 at 0:43

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

#       DESCRIPTION: Mirrors local site and remote site
LOCAL_SOURCE_PATH=/home/myName/locations/music/${1} #param 1 from script for example

EXCLUDE_FILES_LIST=".svn empty anotherDirectory"

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

# -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

Your Answer


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.