add feature to publish iso files on server
Created by: philmmanjaro
Currently I'm using some personal scripts to maintain my install medias on sourceforge. To create check-sums we already implemented:
md5sum *x8*iso > manjaro-xfce-minimal-0.9.0-dev-x86_64-md5sum.txt sha1sum *x8*iso > manjaro-xfce-minimal-0.9.0-dev-x86_64-sha1sum.txt sha256sum *x8*iso > manjaro-xfce-minimal-0.9.0-dev-x86_64-sha256sum.txt sha256sum *i686*iso > manjaro-xfce-minimal-0.9.0-dev-i686-sha256sum.txt sha1sum *i686*iso > manjaro-xfce-minimal-0.9.0-dev-i686-sha1sum.txt md5sum *i686*iso > manjaro-xfce-minimal-0.9.0-dev-i686-md5sum.txt
On the other hand I'm using rsync to upload my images to sourceforge:
#!/bin/sh user=[sourceforge user] project=[sourceforge project] path=0.9.0/xfce-minimal/0.9.0-dev files=*0.9.0* pwfile=`pwd`/passwd sshpass -f $pwfile rsync -vP --progress -e ssh $files $user,$project@frs.sourceforge.net:/home/frs/project/m/ma/$project/$path #sshpass -f $pwfile rsync -vP --progress -e ssh $files $user,$project@frs.sourceforge.net:/home/frs/project/m/ma/$project/$path #sshpass -f $pwfile rsync -vP --progress -e ssh $files $user,$project@frs.sourceforge.net:/home/frs/project/m/ma/$project/$path #sshpass -f $pwfile rsync -vP --progress -e ssh $files $user,$project@frs.sourceforge.net:/home/frs/project/m/ma/$project/$path # #shutdown -h now
As you can see I'm using also sshpass to provide the needed password in a separate file called passwd. Optionally I shutdown my system when the images are larger.
As the connection might break I call the rsync cmds several times.
6.34.181.57: Broken pipe
rsync: [sender] write error: Broken pipe (32)
rsync error: unexplained error (code 255) at io.c(820) [sender=3.1.1]
Using rsync will continue to upload your images. If you have minimal changes you upload in seconds to get the new image there. All you have to use is the same filename.
./up.sh
manjaro-xfce-minimal-0.9.0-dev-i686-build.log
132,441 100% 125.64MB/s 0:00:00 (xfr#1, to-chk=13/14)
It might be good if we would have a proper solution within our manjaro-tools.
- either config file
- or switches to adjust the needed settings
- option to pass the needed password ad-hoc