Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision |
linux:utilities:backup_using_dump_restore [2020/03/26 14:01] – created jlucas | linux:utilities:backup_using_dump_restore [2020/03/26 17:26] (current) – jlucas |
---|
"dump" a directory structure and compress the data while streaming it via ssh to a remote server. | "dump" a directory structure and compress the data while streaming it via ssh to a remote server. |
dump -af- /path/to/data | gzip -1 - | ssh user@hostname dd of=image.gz | |
| dump -0af - data_directory | gzip -1 - | ssh user@hostname dd of=image.dump.gz |
| |
"restore" a directory structure while using gunzip to decompress the data stream via ssh from a remote server. | "restore" a directory structure while using gunzip to decompress the data stream via ssh from a remote server. |
ssh user@hostname dd if=image.gz | gunzip -1 - | restore /dev/sda | |
| ssh user@hostname dd if=image.dump.gz | gzip -d | restore -x -f - |