Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

rsync backup

The rsync command stands for Remote Synchronization.

The Linux command rsync is used to do a backup operation and fast copy file into the local system or remote system in UNIX/Linux.

rsync command examples

# rsync options source destination

$ rsync – zvr /var/www/website/   /root/tmp
$ rsync –avz /root/temp/ linuxconcept@192.168.5.111:/home/linuxconcept/temp/
$ rsync –avz linuxconcept@192.168.5.111:/var/lib/mysql /root/temp
Comment

rsync full disk backup

$ sudo rsync -aAXv / --exclude={"/dev/*","/proc/*","/sys/*","/tmp/*","/run/*","/mnt/*","/media/*","/lost+found"} /mnt
Comment

rsync backup

we use rsync to perform the backup process in Linux/UNIX.

$ rsync –zvr /home/linuxconcept/newweb/ /var/www/linuxconcept/
$ ls –l  /home/linuxconcept/newweb/index.html  /var/www/linuxconcept/index.html
$ rsync –zva /home/linuxconcept/newweb/ /var/www/linuxconcept/
$ rsync –v /etc/ssl/linuxconcept/pubkeys /home/linuxconcept/pubkeys
$ rsync -avz  /root/temp/   linuxconcept@192.168.2.10:/home/linuxconcept/temp/
$ rsync -avz  linuxconcept@192.168.2.10:/home/linuxconcept/satish   /root/temp
$ rsync -avz -e ssh  linuxconcept@192.168.2.10:/home/linuxconcept/satish  /root/temp
$ rsync -avzhe ssh –progress /home/linuxconcept  linuxconcept@192.168.2.10:/root/rpmpkgs
$ rsync  –avz   – -delete  linuxconcept@192.168.2.10:/home/linuxconcept/    .
$ rsync  –avzhe ssh  – -max-size=’400k’  /home/linuxconcept/satish/  linuxconcept@192.168.2.10:/home/linuxconcept/tmp
Comment

PREVIOUS NEXT
Code Example
Shell :: bash remove string from string 
Shell :: jenkins installation on ubuntu 
Shell :: how to create a folder in linux 
Shell :: convert crt to cer with commnd 
Shell :: how to remove something from bin folder in ubuntu 
Shell :: stop mariadb 
Shell :: awk split each character 
Shell :: command to list hardware in linux 
Shell :: sudo run command as another user 
Shell :: suse linux update 
Shell :: aircrack-ng install command 
Shell :: install kali software manager gnome support 
Shell :: GIT: change branch 
Shell :: python print sql in shell_plus 
Shell :: git clone with token 
Shell :: install pug angular 
Shell :: git log files only 
Shell :: chmod 
Shell :: git push takes forever 
Shell :: store pass git 
Shell :: how to kill a process in linux 
Shell :: add text to clipboard wsl 
Shell :: PowerShell script block 
Shell :: npm user install packages 
Shell :: sonarqube linux installation 
Shell :: uninstall all pip packages 
Shell :: github.com api 
Shell :: ssh mac 
Shell :: import docker image 
Shell :: angular 8 install agm 
ADD CONTENT
Topic
Content
Source link
Name
5+3 =