Re: Trying to backup with rsync and mount CIFs

"William D. Knak" <[email protected]>
Newsgroups gmane.comp.sysutils.backup.backuppc.devel
Message-ID <107257658.204781269515459773.JavaMail.root@mail>
Hi all, 


I have and old backup Script that mounts C$ share of a computer, and do an incremental backup daily on a linux folder.. but just for one computer. 

After I started to use BackupPC, I saw that it will be very nice to use rsync like this, first mounting shares with CIFS, than using rsync to do the trick. 

my goal is NOT to install Cygwin, but to create a hidden administrator account - BackupPC, with a very strong password on each computer... I've made a Win32 application to create this hidden account, so is very easy to create. 

original script is here: 

------ 
sudo umount /mnt/disk/ > /dev/null 
sudo mount -t cifs -v -o iocharset=utf8,codepage=cp850,user=user,pass=pass //192.168.200.214/C$ /mnt/disk/ > /dev/null 
rsync -ravzp /mnt/disk/MyFolder/ /home/rsync/MyFolder.BKP/ 
sudo umount /mnt/disk/ > /dev/null 
------ 

this simple script works very nice for a unique computer, for 1 day backup. 

I want to use this concept on BackupPC, so I create a preShareCmd and postShareCmd that mounts and umounts each share, but I can't get rsync to work, I don't know how to write rsync command line without SSH on a way that BackupPC understands the results. 

BackupPC Pre Share Command Line: preShareCmd.sh $host $share 

BackupPC Post Share Command Line: postShareCmd.sh $host 


-- preShareCmd.sh ----------------------------- 
mkdir /mnt/bkp/$1 -p 
sudo umount /mnt/bkp/$1 > /dev/null 
sudo mount -t cifs -v -o iocharset=utf8,codepage=cp850,user=backuppc,pass=pass //$1/$2 /mnt/bkp/$1 > /dev/null 
------------------------------------------------------ 


-- postShareCmd.sh ------------------------- 
sudo umount /mnt/bkp/$1 > /dev/null 
------------------------------------------------------ 


-- 
William 
BackupPC user from Brasil

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev

_______________________________________________
BackupPC-devel mailing list
[email protected]
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-devel
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.