Linux – Using BackupPC to backup Linux server to a windows network drive

backuplinuxUbuntuwindows

I have installed a new ubuntu server that runs subversion and a intranet. This is currently not being backed up so I installed BackupPC onto this server also.

It currently backups to /var/lib/backuppc/pc/localhost however I would like to back up to a networked windows server (i.e. in windows I would type: \mywindowsserver\linuxbackup\ to access my backup from my Vista machine).

All the nightly backups are done by the windows server and I have some space on the server for backing up my ubuntu files and config.

Cab someone suggest what I need to do to do this using BackupPC.

I have SMBClient 3.2.3 installed but not samba.

I look forward to your replies.

thank you

Best Answer

BackupPC uses hard-links in its storage, so you're not going to be able to just share a folder on the Windows machine to mount on the Ubunut machine for BackupPC to write into.

I'd recommend either using rsync (http://rsync.samba.org/) or Unison (http://freshmeat.net/projects/unison) to synchronize the /var/lib/backuppc/pc/localhost directory to a remote directory on your Windows machine. You're going to lose the hardlinks when you do that, but at least you'll have the files off the box.

Related Topic