Archive a directory without using additional disk space?
I have a VPS with 10 GB disk space, and 8.5 GB is occupied by multiple files, that I want to transfer to my computer and then delete from the vps.
It takes a lot of time to download the files one at a time, and then rearranging them into the directory/subdirectory structure they originally had. So I want to be able to make an archive of these files(all of them are within a single directory), without using any additional disk space. Like maybe simply convert the directory into an archive, or maybe archive a file then delete it, and so on. Is that possible? compression does not matter that much to me. Thanks in advance |
Hi,
why do you need to archive them to get them off the vps? Have you considered using something like rsync? Code:
rsync -auzv -e ssh myvps:/path/to/files/to/archive . Evo2. |
Quote:
Quote:
|
If you want to copy the directory structure of your archive directory, not the files
Code:
rsync -av --include '*/' --exclude '*' /path/of/the/source/folder /path/of/the/destination/folder Code:
find /path/of/the/source/folder -type f -exec cp {} /path/of/the/destination/folder \; |
I have a relatively slow internet connection at home. My maximum download speed is ~400 kbps.
Also, is rsync possible on Windows? And do I need to install it on the vps as well? I want to convert it into an archive because that way I would be able to transfer it in one go. I like to use IDM, as that gives me the highest speed. Also, these files are media files. Videos to be specific. Thanks for the help. I'll try both the methods. |
rsync is definitely usable on slow networks, available on windows too. it should not be installed at all, because it consists of 2 or 3 files altogether and you can put them anywhere you want (but of course you can install it).
rsync is able to transfer only differences. |
So would I be able to get my maximum speed using rsync?
|
I have no idea about your config, but probably yes.
|
Ok, I'll try it soon
|
Hi,
Quote:
Quote:
Quote:
Cheers, Evo2. |
I want to archive the files, not necessarily compress them.Internet Download Manager(IDM) is a Windows software for boosting downloads.
|
have you tried rsync? it can really do that job.
|
I will try it tomorrow, when I have more files.
|
All times are GMT -5. The time now is 03:36 AM. |