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 :: how to show two table side by side in github readme 
Shell :: leave azure ad cmd 
Shell :: conda install tabulate 
Shell :: adb restart application 
Shell :: deno bundler 
Shell :: install wp from wp-cli 
Shell :: disable open file explorer erverytime i connect usb ubuntu 
Shell :: create dektop file in ubuntu 
Shell :: bash echo a checkMark based on condition 
Shell :: ryu-manager install ubuntu 
Shell :: ufw enable no disrupt 
Shell :: unable to locate package php-xmlrpc 
Shell :: t.references rails 
Shell :: ssh with key linux 
Shell :: gh-pages-clean 
Shell :: Error: path "" is not a descendant of mount point root "" and cannot be exposed from 
Shell :: are trying to install ruby-2.7.0 on heroku-20. remote: ! remote: ! Ruby ruby-2.7.0 is present on the following stacks: remote: ! remote: ! - heroku-18 
Shell :: git remote branch 
Shell :: view recently installed apps linu 
Shell :: nose2 check coverage 
Shell :: how to take two ip addresses and perform arithemetic bash 
Shell :: Command to Change Users in a Linux 
Shell :: find and move bash 
Shell :: To see all connection NetworkManager has on linux 
Shell :: start brave with tor terminal 
Shell :: get coordinates of the cursor ubuntu 
Shell :: convert x-ray dicom to png 
Shell :: chromeos linux reboot 
Shell :: terminal mkdir and cd 
Shell :: install wsl using this powershell script 
ADD CONTENT
Topic
Content
Source link
Name
9+7 =