Sorry it should look like this:
Code:# Device to backup (your harddisk partition) BD=/dev/hda1; # The directory were $BD is mounted on. (mapped too) MP=/mnt/backup; # $BD's filesystem type (eg: ntfs, ext2, cd9660, ext3, fat, ...) FT=auto; # Mounted NFS directory NFSD=/mnt/nfs; # Mount harddisk to backup mount -t$FT $BD $MP; # Enter mounted harddisk partition cd $MP; # Create a gzipped archive of $MP on $NFSD # and a textfile contianing a list of the backupped files tar pczvf $NFSD/backup.tar.gz . 2> $NFSD/backup.txt;![]()


Reply With Quote










