FSArchiver-EN

Da PoliArch.

Altre Pagine: · Home Page · Documentazione · Downloads · Screenshots · Contatti

This is the guide that shows how to back up one (or more) partitions on the hard disk.

Let us assume that the system is installed on / dev/sda1 and we want to make a backup /mnt/backup.

You can run the following command:

# fsarchiver savefs /mnt/backup/sda1.fsa /dev/sda1

If you want you can put in a single file, multiple partitions:

# fsarchiver savefs /mnt/backup/sda.fsa /dev/sda1 /dev/sda2 /dev/sda3

This is a sample output displayed during the rescue of two (or more) partitions:

# fsarchiver savefs -o /backup/backup-fsa/backup-fsa025-gentoo-amd64-20090103-01.fsa /dev/sda1 /dev/sda2 -v -j4 -A
filesystem features: [has_journal,resize_inode,dir_index,filetype,sparse_super,large_file]
============= archiving filesystem /dev/sda1 =============
-[00][REGFILE ] /vmlinuz-2.6.25.20-x64-fd13
-[00][REGFILE ] /poliarch/memdisk
-[00][REGFILE ] /poliarch/pxelinux.0
-[00][REGFILE ] /poliarch/initram.igz
-[00][REGFILE ] /poliarch/boot.cat
 ¦..
-[00][DIR ] /mkbootcd-gentoo64
-[00][REGFILE ] /System.map-2.6.25.20-x64-fd13
-[00][REGFILE ] /config-2.6.25.20-x64-fd13
-[00][REGFILE ] /config-2.6.27.09-x64-fd16
-[00][DIR ] /
============= archiving filesystem /dev/sda2 =============
-[01][SYMLINK ] /bin/bb
-[01][REGFILE ] /bin/dd
-[01][REGFILE ] /bin/cp
-[01][REGFILE ] /bin/df
 ¦..
-[01][REGFILE ] /fdoverlay/profiles/repo_name
-[01][DIR ] /fdoverlay/profiles
-[01][DIR ] /fdoverlay
-[01][DIR ] /

Remove one or more file systems from the archive

FSArchiver supports multiple filesystems for each store. For this reason, you must manually specify the file system that is intended to restore. Each file system has a sequential number. The first filesystem archive will have the number 0, the second will be 1, and so on.

Here is an example of a restore when there is only one filesystem for archive:

# fsarchiver restfs /mnt/backup/gentoo-rootfs.fsa id=0,dest=/dev/sda1 

Here is an example of the second filesystem archive restore multiple (second number = 1):

# fsarchiver restfs /mnt/backup/archive-multple-filesystems.fsa id=1,dest=/dev/sdb1

If desired it is also possible restore the first and the second filesystem with a command only: (numbers 0 and 1)

# fsarchiver restfs /mnt/backup/archive-multple-filesystems.fsa id=0,dest=/dev/sda1 id=1,dest=/dev/sdb1

The '-F' For example, it allows you to restore an ext2 filesystem that was when it was saved as the new reiserfs partition. In this case, you need to specify the mkfs = xxx with the target partition.

Here's how to restore a filesystem and convert reiserfs at the same time:

# fsarchiver restfs /mnt/backup/sda.fsa id=0,dest=/dev/sda1,mkfs=reiserfs

View information about the archive

It can be helpful to know what has been saved in a particular file, this is possible thanks to 'Archinfo'

# Fsarchiver Archinfo / backup/backup-fsa/sysimg-t3p5g965-debian-20100131-07h16.fsa

Here is an example output:

# fsarchiver archinfo /backup/backup-fsa/sysimg-t3p5g965-debian-20100131-07h16.fsa
====================== Archive information ======================
Archive type: filesystems
Filesystems count: 2
Archive id: 4b610c6e
Archive file format: FsArCh_002
Archive created with: 0.6.6
Archive creation date: 20100131-07:16:35
Archive label: debian-up
Compression level: 7 (lzma level 1)
Encryption algorithm: none

===================== Filesystem information ====================
Filesystem id in archive: 0
Filesystem format: ext3
Filesystem label: boot
Filesystem uuid: d76278bf-5e65-4568-a899-9558ce61bf06
Original device: /dev/sda1
Original filesystem size: 961.18 MB (1,007,869,952 bytes)
Space used in filesystem: 356.86 MB (374,190,080 bytes)

===================== Filesystem information ====================
Filesystem id in archive: 1
Filesystem format: ext3
Filesystem label: debian
Filesystem uuid: 4b0da78f-7F02-4487-a1e2-774c9b412277
Original device: /dev/vgmain/snapdeb
Original filesystem size: 11.81 GB (12,682,706,944 bytes)
Space used in filesystem: 7.11 GB (7,635,599,360 bytes)
Compression Multi-thread

If you have a computer with more than one core (eg dual / quad-core) you can create the jobs that fully exploit all processors.

Here's an example (3-job):

# fsarchiver -j3 -o savefs /mnt/backup/gentoo-rootfs.fsa /dev/sda1

Split an archive into several volumes

If the store you are going to create is too big and you want to share (perhaps to then be written to a CD / DVD), you can split it every few Mb.

Here's an example of split every 4.3 Gb

# sarchiver savefs -s 4300 /data/backup-rhel-5.2-fsa033.fsa /dev/sda1

The first volume will ALWAYS extension. Fsa, subsequent volumes instead take extension: f01, f02, etc. .. Detection of the filesystem

FSArchiver is able to automatically recognize the file systems present on the machine in use, to do this you can use the command:

# fsarchiver simple probe
[=====DEVICE=====] [==FILESYS==] [=====LABEL=====] [====SIZE====] [MAJ] [MIN]
[/dev/sda1 ] [ext3 ] [boot ] [ 768.72 MB] [ 8] [ 1]
[/dev/sda2 ] [reiserfs ] [gentoo ] [ 12.00 GB] [ 8] [ 2]
[/dev/sda3 ] [ext3 ] [data ] [ 350.00 GB] [ 8] [ 3]
[/dev/sda4 ] [ext3 ] [backup ] [ 300.00 GB] [ 8] [ 4]
[/dev/sda5 ] [lvm2pv ] [ ] [ 134.38 GB] [ 8] [ 5]
[/dev/sda6 ] [lvm2pv ] [ ] [ 106.24 GB] [ 8] [ 6]
[/dev/sdb1 ] [reiserfs ] [usb8gb ] [ 7.46 GB] [ 8] [ 17]

Altre Pagine: · Home Page · Documentazione · Downloads · Screenshots · Contatti