Page 1 of 1

Downloading with rsync when the link was cut

Posted: 03 Mar 2015, 22:30
by francois
1.0 Downloading current from packages.slackware.com, I used:
Downloading current, I followed the following procedure and targeted /data on /mnt/sda6 where is installed my 32 bit porteus-plasma system.
http://www.linuxquestions.org/questions ... 175425879/

Code: Select all

rsync -avP --delete-after --delete \
--exclude "source" \
--exclude "usb-and-pxe-installers" \
--exclude "testing" \
--exclude "/slackware/kdei" \
rsync://ftp.osuosl.org/slackware/slackware-current/ /mnt/sda6/data
2.0 As I lost my link in the middle of the download, how should I download only the missing files? In a case where /slackware /a to /slackware/kde were already downloaded. Is it?

Code: Select all

rsync -avP --delete-after --delete \
--exclude "source" \
--exclude "usb-and-pxe-installers" \
--exclude "testing" \
--exclude "/slackware/a" \
--exclude "/slackware/ap" \
--exclude "/slackware/d" \
--exclude "/slackware/e" \
--exclude "/slackware/f" \
--exclude "/slackware/k" \
--exclude "/slackware/kde" \
--exclude "/slackware/kdei" \
rsync://ftp.osuosl.org/slackware/slackware-current/ /mnt/sda6/data
Any advice? I know that this does not work as it erases all the already downloaded files in the /mnt/sda6/data folder. Maybe I should download in a second folder called /mnt/sda6/data2.

Re: Downloading with rsync when the link was cut

Posted: 06 Mar 2015, 23:52
by Hamza
Hi francois.

You should '-z' which will compress data over network. This uses some CPU on both sides but the required bandwidth to transfer your data is lower.

This command should solve your issue.

Code: Select all

rsync -avzP  --delete-after \
--exclude "source" \
--exclude "usb-and-pxe-installers" \
--exclude "testing" \
--exclude "/slackware/kdei" \
rsync://ftp.osuosl.org/slackware/slackware-current/ /mnt/sda6/data
A rsync command we use for syncing Porteus repositories.

Code: Select all

rsync -avz --delete-after ponce.cc::porteus /path/to/localrepository --exclude='path/to/file.txt' --exclude='path/to/file.txt'

Re: Downloading with rsync when the link was cut

Posted: 07 Mar 2015, 00:42
by francois
Thanks a lot.

I think that I should go for a Slackware installation from nothing ( néant). This seems to ne thé advice of wread. :pardon: