* Switches of rsync: 1) -v, –verbose Increase verbosity. 2) -r, –recursive Recurse into directories. 3) -l, –links Copy symlinks as symlinks. 4) -p, –perms Preserve permissions. 5) -t, –times Preserve modification times. 6) -g, –group Preserve group. 7) -o, –owner preserve owner (super-user only) 8) -D Same as –devices –specials. –devices : preserve device files […]
See MoreCategory: Commands
Command for Rsync over SSH – Unix/Linux
Command for Rsync over SSH Common Syntax for Rsync: # rsync [options] Source Destinations. Set up a secure backup with rsync + SSH of one system to the other. backup.example.com# rsync -avz –numeric-ids –delete root@myserver.example.com:/path/ /backup/myserver/ To do the backup, you have to be root on the remote server, because some files are only root […]
See MoreExclude a directory or multiple directories using find command
How to exclude a directory or multiple directories using find command? Quick view on >> Find command and switches << Method 1 : Using the option “-prune -o” We can exclude directories by using the help of “path“, “prune“, “o” and “print” switches with find command. See the example: # find ./ -path ./bit/* -prune -o […]
See More