Backing up

Ogdentechguy

Verified User
Joined
Aug 3, 2009
Messages
18
Right now I have my server set up to backup to a secondary hard drive. What I'd like to do is have it back up to a Windows fileserver. To this end, I've been copying the backups over the network to the Windows server daily with this process:
1) Create a folder on the linux server (in the same directory as the backup files) with today's date, after receiving the email notifying me that the backup is complete
2) Move all the backed up files into this folder
3) Copy the folder to the Windows share

I would of course like to completely automate this process, so that the server itself makes the folders for each date and saves them directly onto the Windows server. I think I should be able to mount the Windows share into the filesystem - and I have a spot reserved for it in /mnt - but I don't know how to do it in a way that will automatically re-mount the share on bootup. Any help on this matter, either telling me how to do it the way I think it should be done, or telling me a better way to do it, is appreciated.

DirectAdmin is running on CentOS 5.0.
 
Is the windows server on the same network as the linux one?
 
Is the windows server on the same network as the linux one?

The Linux server is multihomed, with one NIC on the Internet side and one on the private network. The Windows server is only on the private network.
 
I'm not sure I understand. What do you mean by network share? What method do you use to connect the two servers?

Personally I'd probably run ftp on Windows, and use ncftp on the linux side.

Jeff
 
By Network Share, I mean a SMB share on a Windows server. I tried the FTP thing already but IIS FTP is crap and I can't get the Linux server to connect to it.
 
IIS FTP should work, but if it doesn't, there are lots of small stand-alone FTP servers for Windows. Make sure your firewall trusts all connections on your internal network.

I was afraid you meant SMB (samba on Linux); I wouldn't use it on an Internet server; it just makes it too convenient for anyone who manages to break into linux to read anything on the Windows server.

Jeff
 
Ok we went through and got the IIS FTP working, now all I need to know is how to set up the backup to automatically create a subdirectory with the backup date and put the backup files into that directory.
 
Personally I'd simply upload the backups as not a file structure but a tarbll, to the windows system with a date in the tarball name.

You can open them as needed in Windows using any common zip/unzip program.

Jeff
 
how about a script with cron that upload via ftp everything about the backups , for example /backup/* where * are all subdirectory with the date of backup and delete the old after upload?
 
Back
Top