Skip to main content

Posts

Showing posts with the label rsync

Linux daily commands

Linux Daily Command: Linux A to Z commands - https://www.tecmint.com/linux-commands-cheat-sheet/ Archive directory using tar: tar -cvf <project_name.tar> /mysql/<project_anme> /mysql/mysqlbakcup/<project_name.tar> Extract directory using tar: tar -xvf <File_Name.tar> <Target_Location> tar - https://www.freecodecamp.org/news/tar-in-linux-example-tar-gz-tar-file-and-tar-directory-and-tar-compress-commands/ Copy files to remote server: rsync -avz  *.sql <id>@<remote_server>:</remote_server_path/backup/> --progress Copy directory dir_2 to remote server: rsync -avz /dir_1/dir_2 <id>@<remote_server>:</remote_server_path/backup/> --progress Copy remote file to local server: rsync -avzh <id>@<remote_server>:</remote_server_path/backup/> </local_server_path/local_dir> Copy remote file to local /tmp directory server over SSH: rsync -avzhe ssh <id>@<remote_server>:</remote_server_path/bac...