Thanks a ton for making, sharing, and importantly, documenting this, this is terrific!
EDIT: see the post below, unzip -d is the easier way to go.
Just wanted to share this for other users in the same boat as me: if you need to merge directories from several .zip or .tgz takeout files, a good way to do so is this:
# assumes you have extracted each takeout zip file into one directory. Then:
mkdir MASTER
rsync -a takeout-202303XXXX-001/ MASTER/ --ignore-existing --remove-source-files -v
rsync -a takeout-202303XXXX-002/ MASTER/ --ignore-existing --remove-source-files -v
...
find . -type d -empty -delete
Duplicate files may exist in MASTER if you had albums. You can remove them using fdupes or :
find . -type f | sed 's#.*/##' | sort | uniq -c | sort -n
Thanks a ton for making, sharing, and importantly, documenting this, this is terrific!
EDIT: see the post below,
unzip -d
is the easier way to go.Just wanted to share this for other users in the same boat as me: if you need to merge directories from several
.zip
or.tgz
takeout files, a good way to do so is this:Duplicate files may exist in MASTER if you had albums. You can remove them using
fdupes
or :