My rsync script is missing repo packages
The suse repo FTP sites have some files that my rsync script is not downloading. I wasn't aware of this until I enabled Yast to try an update with the suse online update URL enabled and was surprised to see about 2gb's worth of additional updates that were NOT in my local repo-tree!
Here's a paste from my script, they're all the same on a per-directory basis, the exclude list is below it. I use either rsync -aAvx --progress or rsync -vidhut --progress Is there anything wrong in the script? -------------------------------- rsync -aAvx --progress \ --exclude-from=/0/sa14/comp/fix-os131/excl.txt \ --delete-excluded \ --delete \ ftp5.gwdg.de::pub/opensuse/update/13.1/x86_64/ /0/sa14/comp/fix-os131/updt/suse/x86_64 -------------------------------- Excludes: ------------------------ *2ManDVD* *4pane-* *aircrack* *amsn* *buildsymbols* *debug* *delta* *dev-doc* *.drpm *_en-* *FreeCAD* *gcompris* *_jp-* *kde3-i18n-* *kde4-l10n-* *kdelibs4-apidocs-* *kfloppy-* *-lang-* *-lang-* *lazarus-* *mbrola* *myth* *OpenCASCADE* ------------------------ |
You may want to tell us which files (or at least some examples for filenames that) are not downloaded. Since you are excluding some filename patterns it is obviously expected that not all files are copied.
If you want all files to be copied just remove the --exclude-from directive. |
Quote:
Here's one I looked into: ftp://ftp.sunet.se/pub/Linux/distrib...4.1.x86_64.rpm is not in my local ..update/13.1/x86_64/ folder This is the script section that I would have expected to download it: Code:
rsync -vidhut --progress \ I can't see which exclude pattern hits on the filename of Code:
NetworkManager-devel-0.9.8.8-4.1.x86_64.rpm |
I tried it here with your command (only appended the filename to avoid downloading the whole directory and gave the current directory as target) with your exclusion list and it downloaded the file without problems.
So for debugging purposes you might want to try the same: Create a tmp dir for testing. Put the excl.txt there. Go into the directory. Then run Code:
rsync -vidhut --progress --exclude-from=excl.txt --delete-excluded --delete-after ftp5.gwdg.de::pub/opensuse/update/13.1/x86_64/NetworkManager-devel-0.9.8.8-4.1.x86_64.rpm . |
This is starting to spook me, rsync neither complains nor downloads...
Code:
# rsync -vidhut --progress --exclude-from=excl.txt --delete-excluded --delete-after ftp5.gwdg.de::pub/opensuse/update/13.1/x86_64/NetworkManager-devel-0.9.8.8-4.1.x86_64.rpm |
Same thing without the exclusion file, nothing downloaded
Code:
# rsync -vidhut --progress --delete-after ftp5.gwdg.de::pub/opensuse/update/13.1/x86_64/NetworkManager-devel-0.9.8.8-4.1.x86_64.rpm |
Sorry, I am probably missing something, but in the code you posted I can't see the target in the rsync command?
Can you post the exact command that you issued? Another thing you could try: Increase the verbosity of rsync to see what's going on. From the manpage: Code:
-v, --verbose |
Quote:
Then as I looked closer for other signs of my stupidity I noticed a 'no such file' message and that lead me to a fault in the target path of Code:
/0/sa14/comp/fix-os131/updt/suse/x86_64 So how was my real target folder full but not quite up to date? I think soemewhere along the line I edited the file and wrote-in the mistake, THAT's when updating probably stopped in its tracks. Right now I'm getting it rsynced as should be from my Mageai 5a2 installation and 2.4 gb will take the night and then some. Thanks for your pointers! |
Glad you managed to get it working!
|
All times are GMT -5. The time now is 03:41 AM. |