SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I've been reading resources for rsync on the web as well as man rsync.
A lot of this is new to me.
I want to use rsync for updating patches.
I have a home computer, using Slackware 12.
I still have questions:
How I set this up on my computer to download new updates?
What is the difference between using ssh and a rsync daemon; which would be
more secure?
Is there a way with rsync to list new patches that are downloaded:
When I rsync my patches directory with the source for patches on the net it will update it, but I also want to know which are the new patches that were downloaded as well?
I don't understand what you mean there - when that script of mine finds new patches it will show the new ones.
For instance, the latest addition to the Slackware 12.0 /patches directory resulted in this email (I run the script every night in a cron job so that the script's output gets emailed to me)
Code:
[rsync_slackware_patches.sh:] New patches have arrived for Slackware 12.0 !
.......................................................................
0a1,7
> Mon Dec 31 18:49:52 CST 2007
> patches/packages/glibc-zoneinfo-2.5-noarch-7_slack12.0.tgz:
> Some deja vu. ;-)
> Upgraded to tzdata2007k. A new year should be started with the
> latest timezone data, so here it is.
> Happy holidays, and a happy new year to all! :-)
> +--------------------------+
One modification I made to the patches script was not to delete files. The simple reason is that occasionally a patched file introduces a bug. By not deleting files I can revert to the previous version. Samba (3.026a I think, but my memory is fuzzy tonight) was a recent example. I no longer could access Samba shares but could read Windows shares fine. I reverted to the previous version. The bug was not my imagination because soon thereafter another patched version of Samba appeared.
Thanks for replies.
Sorry. I'm not familiar with scripts so I couldn't tell from reading the script what it was going to report. I don't think I had any new updates when I tried the script; that's why I didn't see an output like Alien Bob described.
I found this output:
Quote:
sent 129 bytes received 4712 bytes 3227.33 bytes/sec
total size is 283092753 speedup is 58478.16
[rsync_slackware_patches.sh:] Exit status: 0
[rsync_slackware_patches.sh:] Done rsync-ing.
[rsync_slackware_patches.sh:] No change detected in the CHECKSUMS.md5 file.
[rsync_slackware_patches.sh:] Removing temporary file '/tmp/ChangeLog.v8T7Re'.
[rsync_slackware_patches.sh:] Done!
Does No change detected in the CHECKSUMS.md5 file. mean there are no new updates?
Can I edit this: PKGONLY=0to stop downloading the source. I keep forgetting the -p option?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.