Pages

Monday, October 27, 2014

How to mount windows share to Linux



How to mount windows share to Linux


mount -t cifs -o user=IRRIAD/sladmin,password=~ws????a+  //172.29.4.30/H   /tmp/backup

Take note on :

/

\

sharename = //172.29.4.30/H

mount point in linux box =  /tmp/backup




##########################################################


How to check Folder space left..disk space left..

#################
check for disk space of a certain folder.
du -sbh DIR
#################

Backuppc

To copy a complete store (ie: /var/lib/backuppc) using BackupPC_tarPCCopy you should:
  • stop BackupPC so that the store is static.
  • copy the cpool, conf and log directory trees using any technique (like cp, rsync or tar) without the need to preserve hardlinks.
  • copy the pc directory using BackupPC_tarPCCopy:
        su backuppc
        cd NEW_TOPDIR
        mkdir pc
        cd pc
        /usr/share/backuppc/bin/BackupPC_tarPCCopy /var/lib/backuppc/pc | tar xvPf -

irri@backuppc2:/usr/share$ locate BackupPC_zipCreate
/usr/share/backuppc/bin/BackupPC_zipCreate
¬¬~

sudo Backuppc_zipCreate -h virriadfs -n -1 -c 3 "-s f  /gis1"  > /home/irri/gis1.zip
sudo /usr/share/backuppc/bin/BackupPC_zipCreate -h virriadfs -n -1 -c 3 "-s f  /gis1"  > /home/irri/gis1.zip
/usr/share/backuppc/bin/BackupPC_zipCreate -h virriadfs -n -1 -c 3 "-s f  /gis1"  > gis1.zip
/usr/share/backuppc/bin/BackupPC_zipCreate -h virriadfs -n -1 -c 3 -s  gis1 /  >  /tmp/gis1.zip
/usr/share/backuppc/bin/BackupPC_zipCreate -h irriad1 -n -2 -c 3 -s  elyt  /  >  /tmp/elyt.zip
/usr/share/backuppc/bin/BackupPC_zipCreate -h virriadfs -n -1 -c 3 -s  abcd  /  >  /tmp/abcd.zip

/var/lib/backuppc/pc/virriadfs/94/fF$/fGIS1

/usr/share/backuppc/bin/BackupPC_tarCreate -h virriadfs -n -189 -s  "fF$/fGIS1 /"  >  /tmp/gis1.tar
/usr/share/backuppc/bin/BackupPC_tarCreate -h virriad1 -n -189 -s / / > /tmp/gis1.tar

Conf{SmbClientIncrCmd} = '$smbClientPath \\\\irriad1\\elyt'
/usr/share/backuppc/bin/BackupPC_tarCreate -t -h virriadfs -n 94 -s F$  / >  /tmp/gis1.tar

/usr/share/backuppc/bin/BackupPC_tarCreate -h virriadfs -n 90 -s F$  / >  /var/lib/backuppc/nanie/pps.tar
~h1n0g#


mount -t cifs -o user=IRRIAD/sladmin,password=~wsw3ma+  //172.29.4.30/H   /tmp/backup