Skip to content

Instantly share code, notes, and snippets.

@paolodina
Created December 10, 2014 21:33
Show Gist options
  • Save paolodina/44f660a393f0be49b6dc to your computer and use it in GitHub Desktop.
Save paolodina/44f660a393f0be49b6dc to your computer and use it in GitHub Desktop.
Scriptino Attic + lvm snapshot
$ sudo ./runbackup.sh
[sudo] password for paolo:
Create into sysvg a snapshot of lvroot named backup_snapshot_root
Logical volume "backup_snapshot_root" created
Mounting root snapshot to filesystem...
Create into sysvg a snapshot of lvhome named backup_snapshot_home
Logical volume "backup_snapshot_home" created
Mounting home snapshot to filesystem...
Create into sysvg a snapshot of lvvar named backup_snapshot_var
Logical volume "backup_snapshot_var" created
Mounting home snapshot to filesystem...
Create into sysvg a snapshot of lvboot named backup_snapshot_boot
Logical volume "backup_snapshot_boot" created
Mounting boot snapshot to filesystem...
Create into sysvg a snapshot of lvusr named backup_snapshot_usr
Logical volume "backup_snapshot_usr" created
Mounting usr snapshot to filesystem...
run backup...
------------------------------------------------------------------------------
Archive name: 2014-12-10_18:12:03
Archive fingerprint: ac084ded412d9142554ec004e2b6a9dff4ef5c0807f6596abff02ecc8eded363
Start time: Wed Dec 10 18:24:26 2014
End time: Wed Dec 10 18:48:33 2014
Duration: 24 minutes 7.32 seconds
Number of files: 1205813
Original size Compressed size Deduplicated size
This archive: 108.26 GB 64.65 GB 1.42 GB
All archives: 771.98 GB 477.59 GB 73.01 GB
------------------------------------------------------------------------------
home snapshot umount
usr snapshot umount
var snapshot umount
boot snapshot umount
snapshot umount
remove home snapshot
Logical volume "backup_snapshot_home" successfully removed
remove usr snapshot
Logical volume "backup_snapshot_usr" successfully removed
remove var snapshot
Logical volume "backup_snapshot_var" successfully removed
remove boot snapshot
Logical volume "backup_snapshot_boot" successfully removed
remove root snapshot
Logical volume "backup_snapshot_root" successfully removed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment