![]() Use -P which gives –progress and –partial. Use -v to get extra information and output. ![]() Look at man page or rsync –help to see all of the options that -a does Use -a to send over attributes and recurse thru folders (we are just copying 1 file so the recursive part doesnt matter). We will use rsync to send these giant files over because its convinient and can be resumed. NOTE: there is no need to specify the type of compression method you used, for obvious reasons (such as you might not know the compression method as it was made by someone else) Send your files to a server via rsync (over ssh)Īll you need on the remote side is an ssh server that you can connect to and make sure that it also has a running copy of rsync. # tar xvf PheeMacHD.tar -C /mnt/compressed So to avoid that skip the mkdir and -C /mnt/data command # 7z x compressed.tar.7z This will probably create /mnt/data/data. Lets extract data.tar.7z first (no reason) # 7z x data.tar.7z If you wanted to extract it, it would look like this:įirst you need to un7zip. NOTE: -mx9 is best compression, -mx3 is okay compression, -mx0 is copy compression (doesnt compress, best to use on already compressed files or files that dont compress well such as pictures, videos, other compressed files) # tar -cvf - /compressed/ | 7z a -mx0 -si /mnt/compressed.tar.7z # tar -cvf - /data/ | 7z a -mx3 -si /mnt/data.tar.7z the end resulting tar file will be identical and can be extracted with regular or bsdtar. A 100 Gig sparse file with only 1 MB of data will take a while to tar, but with bsdtar it will be quicker. So its best to tar and pipe output to 7z and create a tar.7z file. # apt-get install openssh-server # I assume this is setup and thats how your accessing both remote and local system # apt-get install openssh-client ħzip does not preserve linux permissions and attribute, but tar does. After that I show you how to rsync over that 7zip file to a remote side using rsync over ssh method (without setting up any rsync servers or anything) Requirements:Īre to have rsync and 7zip and ssh on both sides openssh-server and openssh-client # apt-get update So first we tar up the data & then 7zip it (it can be done with 1 command). However 7zip was made originally for windows so it doesnt preserve linux attributes like permissions. 7zip has the best compression (or some of the best), so we want to use that. ![]() ![]() Here we backup a linux folder /data with all of its data to a remote system. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |