80 likes | 255 Views
Restoration. Focus Question. Compare the ability of various backup/restore utilities to provide ease of access and secure storage of your system data. Backup/Restore System Utilities. tar – backs up files according to a directory hierarchy
E N D
Focus Question Compare the ability of various backup/restore utilities to provide ease of access and secure storage of your system data.
Backup/RestoreSystem Utilities • tar – backs up files according to a directory hierarchy • cpio – backs up files that match a given set of criteria. • dump/restore – performs multi-level backups of file systems.
The TAR Command • Best used for directory structures within a file system. • Works well with stdin/stdout and various filters. • Create an archive:tar cvf archive.tar dir [dir…]ssh user@hostname “tar cf – dir” > archive.tarssh user@hostname “tar cf – dir” | [gzip|gpg] • Extract an archive:tar xvf archive.tar [filename|dirname]ssh user@backuphost “cat archive.tar” | tar xvf -
The CPIO Comamnd • Primary advantage is that it is a filter which can receive input from the find command. • Create an archive:find … | cpio –vocB –O device|filenamefind … | cpio –vocB | [gzip|gpg] > backup • Extract an archive:cpio –vicdumB –I device|filenamezcat archive.cpio.gz | cpio -vicdumB
Dump and Restore • Dump allows incremental backups of entire, single file systems • Restore offers a browsable index of files in the archive and the ability to extract all or selected files only. • Examples:ssh user@hostname “dump –1uf - /dev/…” > archive.dmprestore –if archive.dmprestore –xf archive.dmp
Focus Question Compare the ability of various backup/restore utilities to provide ease of access and secure storage of your system data.