Linux, Script

Data Backup in secure mode

Back up your data over the Internet in Secure mode using the SSH Services.

Back up your data over the Internet in Secure mode using the SSH Services.
In this script, we transferring/copying data from one server to another server using a secure SSH server and using dd & gzip commands.
[[email protected] ~]$ dd if=linux | gzip | ssh [email protected] dd of=linux_data_bak.gz

use your partition name Ex: /dev/sda1 or Directory name in place of Linux.
[[email protected] ~]$ dd if=linux_data_bak | gzip -d | ssh -p 2244 [email protected] dd of=linux_data_bak.gz