aadlani / backup-manager Goto Github PK
View Code? Open in Web Editor NEWPure Unix personal backup manager that I use on OSX
Home Page: http://aadlani.github.com/backup-manager/
License: MIT License
Pure Unix personal backup manager that I use on OSX
Home Page: http://aadlani.github.com/backup-manager/
License: MIT License
in line 87:
weekNum=$(($archiveDay/7))
if archiveDay is "09" it is treated as a base-8 number which is invalid and script fails here. Solution for that is to explicitly say that it is a base-10 number.
weekNum=$(((10#$archiveDay)/7))
Thank you for this nice script. Some parts of it does not work for me:
$find $SNAPSHOT_DIR -mindepth 1 -maxdepth 1 -type d -exec basename {} ; | \
solves it.
4. GNU find command does not have an -E switch
5. /usr/local/bin/gpg <- not the standard path for gpg
Perhaps something like this might help:
// Setting binaries
find=/usr/bin/find
tar=/bin/tar
gpg=/usr/bin/gpg
//These are the commands we actually need for the backup
command_list=(date echo $find grep $gpg hostname sh $tar which)
// Verify that each command we use exists. if one can't be found use $PATH and make a suggestion if possible.
for command in ${command_list[@]}; do
if [ ! -x "which $command 2>&1
" ]; then
echo -e "\nERROR: $command not found! "
base=basename $command
if [ "which $base 2>&1 | grep "no \
basename $command in"
" != "" ]; then
echo -e "ERROR: $base is not in your $PATH."
fi
exit -1
fi
done
(it is part of blinkeye's great mkstage4 script)
best regards,
nik-k
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.