Search

Monday 28 September 2009

Backup up a linux folder to a Windows share


On your distrib make sure you have the mount.cifs package installed, then create a CRON job to mount the remote Windows share on your linux box and rsync the data to it, before finally unmounting the Windows share:


:mount the remote Windows share first, using a windows user with full read/right rights


/sbin/mount.cifs //windows_server/windows_volume /windows_share -o user=somewindowsuser,password=cheese,dom=awindowsdomain


:rsync a local linux folder to the windows share - this is ubuntu so I had to use sudo


sudo rsync -a -v -z //mylocallinuxfoldertobackup/ /windows_share/LinuxBackup/


:unmount the windows share


/sbin/umount.cifs /windows_server

No comments:

Post a Comment