The following shell scripts have been handy in this case. You might have to adjust the -N parameter, which causes tar to include only files newer than the provided date.
Use it to exclude all the binaries that come with the Synology toolchain.
Binaries
tar -N '2014-05-01' \ --no-recursion \ --exclude="*.tar.gz" \ --exclude="pack*" \ --exclude="pkgcon*" \ --exclude="xml2Con*" \ --exclude="engines" \ --exclude="gcc" \ --exclude="gcj*" \ --exclude="ldscr*" \ --exclude="*.a" \ --exclude="loggin*" \ -zcvf \ bin_`date +"%Y%m%d_%H%M"`.tar.gz *
Libraries
tar -N '2014-05-01' \ --no-recursion \ --exclude="*.tar.gz" \ --exclude="pack*" \ --exclude="pkgcon*" \ --exclude="xml2Con*" \ --exclude="engines" \ --exclude="gcc" \ --exclude="gcj*" \ --exclude="ldscr*" \ --exclude="*.a" \ --exclude="loggin*" \ --exclude="libdbus*" \ -zcvf \ lib_`date +"%Y%m%d_%H%M"`.tar.gz *
No comments:
Post a Comment