Now, save removes all the old data and recreates them according to the
current state.
Status shows the data last commited, not the data from the work tree,
which might be deleted due to `save` running in parallel.
;;
save)
cd $DATA
+ git rm '*' # Remove old data - perhaps, some homes were removed
for i in /home/*; do
du -shx $i | cut -f1 > ${i#/home/};
git add ${i#/home/}
status)
cd $DATA
grep . *|sort -h -k2 -t:
+ git ls-files --with-tree=HEAD | while read f; do
+ echo "$f:$(git show "HEAD:$f")"
+ done | sort -h -k2 -t:
;;
log)
cd $DATA