New script to backup source code from abs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



I been looking for a way to backup source for sometime. Like a dvd iso disc.
I started to look for away to do this after seeing 2012. It got me thinking
of how to rebuild a compete archlinux system. This would also help us with
are world domination plans.

Joking aside, here is the script below:
http://arch-live.isawsome.net/devel/backup-src.sh

My script uncompresses the source code archives and re-compress them has
$pkgname-$pkgver-$pkgrel.src.tar.lzma. I put the newer files in
$SRCDEST/$repo folder. This makes it easier to find. It

example below backups up all sources of extra repo in /var/abs/extra folder.

./backup-src.sh extra

example below backups just abs source folder in /var/abs/extra. Including
the abs archive uncompressed in abs/src folder.
./backup-src.sh extra abs

I have seen some good compressing improvement when everything is
re-compressed as .tar.lzma. For example chromium:
chromium original archive is 130mb
chromium re-compressed with .tar.lzma is 101.1mb

You can extra the newer archives and build with 'makepkg -e'.

I hope this helps.


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux