latest
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
THIS = $(shell basename $(CURDIR))
|
||||
YYYYMMDD = $(shell date -u +%Y-%m-%d)
|
||||
YYYY = $(shell date +%Y)
|
||||
|
||||
default: save_makefile update-lifeboat update-photos
|
||||
|
||||
save_makefile:
|
||||
cp ./Makefile $(HOME)/dev/hacks/makefiles/$(YYYYMMDD).$(THIS).makefile
|
||||
|
||||
update-lifeboat:
|
||||
rsync -avP --delete $(HOME)/Library/Syncthing/folders/lifeboat/*.zip /Volumes/1tb-lifeboat1G/berlin.sneak.fs.lifeboat/
|
||||
zip -T /Volumes/1tb-lifeboat1G/berlin.sneak.fs.lifeboat/*.zip
|
||||
|
||||
update-photos:
|
||||
rsync -avP --delete $(HOME)/Library/Syncthing/folders/LightroomMasters-CurrentYear/ ./fs/ 2>&1 | tee -a log.txt
|
||||
cd ./fs && find . -type f -print0 | xargs -0 shasum 2&>1 | tee -a ../SHASUMS.txt
|
||||
@@ -0,0 +1,28 @@
|
||||
THIS = $(shell basename $(CURDIR))
|
||||
YYYYMMDD = $(shell date -u +%Y-%m-%d)
|
||||
|
||||
default: backup
|
||||
|
||||
save_makefile:
|
||||
cp ./Makefile $(HOME)/dev/hacks/makefiles/$(YYYYMMDD).$(THIS).makefile
|
||||
|
||||
backup: save_makefile do_file_backup write_checksum
|
||||
|
||||
write_checksum:
|
||||
cd ./fs && find . -type f -print0 | xargs -0 sha1sum | tee -a ../SHASUMS.txt
|
||||
|
||||
do_file_backup:
|
||||
rsync -avv \
|
||||
--exclude=/tmp \
|
||||
--exclude=/.cache \
|
||||
--exclude=/.nvm \
|
||||
--exclude=/.Trash \
|
||||
--exclude=/Library/Caches \
|
||||
--exclude=/Library/Mail \
|
||||
--exclude=/Library/Developer \
|
||||
--exclude=.DS_Store \
|
||||
--delete-before \
|
||||
--delete-excluded \
|
||||
$(HOME)/ ./fs/ 2>&1 | tee -a ./$(shell date -u +%Y-%m-%d).log
|
||||
echo '# $(shell date -u)' > ./lastbackup.txt
|
||||
date -u '+%s' >> ./lastbackup.txt
|
||||
10
makefiles/2022-12-10.usbroot-makefile.makefile
Normal file
10
makefiles/2022-12-10.usbroot-makefile.makefile
Normal file
@@ -0,0 +1,10 @@
|
||||
THIS = usbroot-makefile
|
||||
YYYYMMDD = $(shell date -u +%Y-%m-%d)
|
||||
|
||||
default: save_makefile alldirs
|
||||
|
||||
save_makefile:
|
||||
cp ./Makefile $(HOME)/dev/hacks/makefiles/$(YYYYMMDD).$(THIS).makefile
|
||||
|
||||
alldirs:
|
||||
for D in ./berlin.sneak.fs.* ; do cd $$D && make && cd .. ; done
|
||||
Reference in New Issue
Block a user