rsync is a snap to learn and you can tunnel over ssh if you wish
http://sial.org/howto/rsync/
rsync is a snap to learn and you can tunnel over ssh if you wish
http://sial.org/howto/rsync/
There are two mistakes one can make along the road to truth...not going all the way, and not starting.
--Prince Gautama Siddharta
#ubuntuforums web interface
I am a fresh Ubuntu user - loving it so far- but I found a pretty simple way to synchronize files over FTP, using lftp.
Create a script for lftp:
and a shell script to execute itCode:open ftp://username:password@ftp.mydomain.cz mirror -R -v --only-newer /home/moglum/folderToBackup /remoteFolder
This makes a backup of your local folder to the remote server.Code:lftp -f backupScript.txt &
To get your files from the server you would use a similar script. Something like this:
Simple enough for me and working well. man page for lftp is a great resource. You can easily backup multiple folders, log the activity to a file or schedule your backups.Code:open ftp://username:password@ftp.mydomain.cz mirror -v --only-newer /remoteFolder /home/moglum/folderToBackup
Hi Moglum,
You tutorial is really great. Since I am a real noob on Ubuntu (Mac User) this was very hard for me to do.
I made the script working with lftp and it's downloading/mirroring the webserver to my local machine.
There are some thing I still have a question about and I can't find the answer.
1. how can I schedule the lftp scrip.txt to run every week or so?
2. can I monitor and see how far the ftp mirroring is?
3. can I add more servers in my scipt.txt? So I have 2 webservers I want to backup to my local machine.
I hope you understand what I am trying to do and can help me out here
Stefan
Ubuntu has a great way to do scheduling of anything that can be run from the command line. There is a great tutorial for this that can be found here:
https://help.ubuntu.com/community/CronHowto
I hope this helps.
Bookmarks