7 lines
330 B
Plaintext
Executable File
7 lines
330 B
Plaintext
Executable File
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 \;
|
|
}
|