Backing Up a Website use the front end i wrote FunnelWebGet

using the free program WGET.exe as a backend

Follow @venVirupa donate a coin to me

Pay With Bitcoin here is my wabbit button for chrome

if you want a Ubuntu based computer filesystem backup here or use the ntfsclone command in Linux

Su into a superuser terminal to start your backup session scripting.

First do a df -h at a terminal screen to find your correct partition                                                                                     *warning you need the CORRECT partition and order the commands using the correct drives

 otherwise you can nuke your system beware and see disclaimers on the main website page no liability accepted .

Cd into the drive you want to save the backup boot image and system image to ( good idea to have independent external drive not part of your main computer not powered by usb power ie a external plug pack powered drive for about 70 aus )
     in my case external Seagate  ( non usb powered ) 1Tb backup drive to save system images and music backups on

cd /media/username/3C147D937B07414/BackupISOs/             ( sdb7 in the list below )

now to analyse the drives

df -h

Filesystem      Size  Used Avail Use% Mounted on

/dev/sda7        22G  7.2G   14G  35% /

udev            2.0G  4.0K  2.0G   1% /dev

tmpfs           808M  1.1M  807M   1% /run

none            5.0M  4.0K  5.0M   1% /run/lock

none            2.0G  668K  2.0G   1% /run/shm

none            100M   12K  100M   1% /run/user

/dev/sdb5       345G   22G  324G   7% /media/Movie Drive

/dev/sdb7       331G  107G  225G  33% /media/3C14A7D937B07414

/dev/sda5       37814952  11299412  26515540  30% /media/74C03988C039519A

/dev/sda1       4.4G  1.1M  4.4G   1% /media/202E-D9ED

woa hold your horses whats all that crap?

well its just a list of your drives and other devices like flash, cd-rom etc and their block identification numbers used as mount directories in the /media directory ( for instance a ntfs or windows partition would have the smaller Block ID )

just do it now then mount the drive in the explorer and compare the output

you should see a extra line from df -h

if you execute ntfsclone with the wrong name you will get a error ( here i used hda2 instead of sda2

ThinkCentre-M57 BigNew #ntfsclone --save-image --output backup.img /dev/hda2 ( wrong here )

ThinkCentre-M57 BigNew #ntfsclone v2013.1.13AR.1 (libntfs-3g)

ERROR(2): Failed to check '/dev/hda2' mount state: No such file or directory

ThinkCentre-M57 BigNew # ntfsclone --save-image --output backup.img /dev/sda2 ( correct )

one more error

ntfsclone --save-image --output backup.img /dev/sda2

ntfsclone v2013.1.13AR.1 (libntfs-3g)

ERROR: Device '/dev/sda2' is mounted read-write. You must 'umount' it first.

just umount the device using
 umount /dev/sda2 

it will allow manipulation like backups then to occur you should see like the picture above or this text below

ntfsclone v2013.1.13AR.1 (libntfs-3g)
NTFS volume version: 3.1
Cluster size       : 4096 bytes
Current volume size: 151648411648 bytes (151649 MB)
Current device size: 151649487360 bytes (151650 MB)
Scanning volume ...
100.00 percent completed
Accounting clusters ...
Space in use       : 27888 MB (18.4%)   
Saving NTFS to image ...
100.00 percent completed
Syncing ...

information about cluster size etc then don't forget to copy ( cp in linux) to another device to make sure you have done it correctly :)

cp backup.img /media/etc/

or just use move

mv ntfscloneLenovoDesk2coreJan2015.img system\ Backups/ 

 ntfsclone --save-image --output backup.img /dev/sdb1

ntfsclone v2015.3.14AR.1 (libntfs-3g)

NTFS volume version: 3.1

Cluster size       : 4096 bytes

Current volume size: 1000194015232 bytes (1000195 MB)

Current device size: 1000194015744 bytes (1000195 MB)

Scanning volume ...

100.00 percent completed

Accounting clusters ...

Cluster accounting failed at 399328 (0x617e0): extra cluster in $Bitmap ( this may turn up for every cluster error )

Totally 64 cluster accounting mismatches.

ERROR: Filesystem check failed! Windows wasn't shutdown properly or inconsistent

filesystem. Please run chkdsk /f on Windows then reboot it TWICE.

// like it says reboot into Windows then run the command chkdsk /f at the prompt ( start a terminal )

Help boot part 1

Backup your boot partition its the smaller one in this case /dev/sda1 using dd command (note the part 
saying 202E-D9ED text is smaller then the others ( indicating a fat32 or 16 boot partition 
 in linux partition name standards ) this is from a dual boot with 1 hard drive about 50 gig.
Lenovo desktop machine with Windows Vista and Linux Mint it has a big boot partition because
it uses that to store a backup of the OS if you need to reinstall windows .  (make sure you change directory
to a device to store your backup thats big enough to fit as (dd) doesn't do any optimization like ntfsclone 
has built into it ... we use dd here as we can't use ntfsclone because its a fat32/16 partition  so we use dd instead this will make
a 4 gig file from a 4 gig partition) also it wont make the drive bootable you have to do that part in a program
like gparted beforehand .

dd if=/dev/sda1 of=windowsXPbootPart.iso

Now save an NTFS partiton to a file in the special image format:

ntfsclone --save-image --output winXPntfsclone-back.img /dev/sda5 
( backs up a ntfs on /dev/sda5 )

Restore an NTFS from a special image file to its original partition:
ntfsclone --restore-image --overwrite /dev/sda5 winXPntfsclone-back.img

Sometimes a simple program is just what is needed to backup your website and sometimes it is free too !!!

Here is a review of wget a program for downloading your website so you have a backup of your precious web data it is available here for the win32 platform.

Check on the internet for help  WGet it is a command line program that is just doing what you want without too many bells and whistles 

This picture shows some of the options available

I got it running with a simple command in brackets here.  ( wget -r )  dont forget the -r at the end this stands for recursivly descend into the directories and fetch information out to your local computer.

Want to back up Deb files only ( useful for a quick backup of useful system upgrades ) here is a good trick using APTonCD and the dpkg -i *.deb to restore them or use rsync to backup your Linux 

usb based hard drive backup rsync command

rsync -aAXv /* /media/stephenxyz/3C14A7D937B07414/BackupISOs/linuxmainroom --exclude={/home/stephenxyz/.cache/*,/dev/*,/proc/*,/sys/*,/tmp/*,/run/*,/mnt/*,/media/*,/lost+found}

network based ( iomega ix2 ) hard drive rsync command ( mounted first )

mount -t cifs -o username=user,rw // /mnt/ix2store

rsync -vrlptD  /  /mnt/ix2store/linuxmainroom  --exclude={/home/stephen666/.cache/*,/tmp/*,/run/*,/mnt/*,/media/*,/lost+found}

-v verbose output
-r, --recursive             recurse into directories
      -l, --links                 copy symlinks as symlinks
      -p, --perms                 preserve permissions
      -t, --times                 preserve modification times
      -D                          same as --devices --specials
          --devices               preserve device files (super-user only)
          --specials              preserve special files
rsync -vrlptD /* /media/stephenp777/44ce4599-849f-4171-9a0d-308d015c905d/ --exclude={/home/stephenp777/*,/dev/*,/proc/*,/sys/*,/tmp/*,/run/*,/mnt/*,/media/*,/lost+found,*.img192,*.iso,*.deb}
Backing up your linux system with Anacronism (Zenity, Bash, and Anacron scripts )

Shell access to your NAS device just for the hell of it :) or ppl wanting to copy from the NAS by hand.

Main Page