Downloading with rsync when the link was cut

Non release banter
Post Reply
User avatar
francois
Contributor
Contributor
Posts: 4902
Joined: 28 Dec 2010, 14:25
Distribution: kde xfce porteus manjaro kubun
Location: Enfin l'été, le changement climatique attendu: le soleil.

Downloading with rsync when the link was cut

Post#1 by francois » 03 Mar 2015, 22:30

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.
Voltaire: Le mieux est l'ennemi du bien.

User avatar
Hamza
Warlord
Warlord
Posts: 1846
Joined: 28 Dec 2010, 07:41
Distribution: Porteus
Location: France

Re: Downloading with rsync when the link was cut

Post#2 by Hamza » 06 Mar 2015, 23:52

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'
NjVFQzY2Rg==

User avatar
francois
Contributor
Contributor
Posts: 4902
Joined: 28 Dec 2010, 14:25
Distribution: kde xfce porteus manjaro kubun
Location: Enfin l'été, le changement climatique attendu: le soleil.

Re: Downloading with rsync when the link was cut

Post#3 by francois » 07 Mar 2015, 00:42

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:
Voltaire: Le mieux est l'ennemi du bien.

Post Reply