Adds old zsh functions untouched.
This commit is contained in:
6
.zsh_functions/whatsapp-backup
Executable file
6
.zsh_functions/whatsapp-backup
Executable file
@@ -0,0 +1,6 @@
|
||||
whatsapp-backup() {
|
||||
TIMESTAMP=`python3 -c "from datetime import datetime; print(datetime.now().strftime('%Y-%m-%d.%H-%M-%S.%f'))"`
|
||||
DESTDIR=~/Downloads/WhatsApp-export-$TIMESTAMP
|
||||
mkdir -p $DESTDIR
|
||||
find ~/Library/Group\ Containers/group.net.whatsapp.WhatsApp.shared/ -type f -iname '*.*' -exec cp "{}" $DESTDIR \;
|
||||
}
|
||||
Reference in New Issue
Block a user