Help with command for backup

Associate
Joined
6 Jan 2008
Posts
316
Hi there,
I'm looking for some help with scheduled backup between two locations and I was wondering if someone could help me with what actually needs to be done to get it to work.

(If you can't tell I'm actually new to linux). I'm running Fedora 14.

I need to create a daily and weekly backup

I'm trying to backup the whole folder from: etc/var/backup
to: (FTP folder) " User logged in at 10.10.10.10" / subfolder on FTP: backup

Thank you.
 
Hi,
Thanks for your reply. I've got the FTP folder mounted as a directory (using bookmarks). Could you give me an example or rsync command to use the backup please?

I do have the option to run any service. But the server for the backup is running windows. What would you suggest to use instead?
To minimise the security risks, I've set the iptables to only allow specific IP addresses.
 
I use "rsync -arv /source /target"

This recursively copies only the updates from the source to target

Google can give you the other rsync options.

The main issue with ftp is that it is unencrypted so anyone sniffing the network can see the contents of the files. I believe rsync has an option to encrypt the info but I've never tried that.
 
Just as a warning, I don't think Windows will maintain any of the permissions on the files you're backing up. If you need to restore from a backup then it could potentially be a lot of hassle.
Anyway, this is what I'd do:

Set up an SSH/SFTP server on the Windows box. There's a list here: http://en.wikipedia.org/wiki/List_of_SFTP_server_software
Cygwin is particularly good but is probably a bit much for what you need.

Once that's done you can use this command:
Code:
rsync -avz -e ssh /path/to/source/folder user@host:/path/to/destination/folder/
'user' should be your username on the Windows box running the server. Host should be the IP address of the Windows box.

If that works then you need to set up a couple of cron jobs to make it run daily and weekly. Give us a shout if you need a hand with that.

HTH.
 
Hi there,
Sorry to open up an old thread, but following on from this above (which has been working great with SSH) I would like to automate this on Fedora 14 so at X time the command will run.
At the moment when I run the command, I have to type in the password to authorise myself against the SFTP host (Freenass 8). Is there away I can get the system to remember the password for the above usage?

Thank you
 
Back
Top Bottom