Can I use ditto?

Joined
Mar 30, 2018
Messages
4
Reaction score
0
I want to use ditto command in terminal, but I'm not exactly sure how, or the other commands I need to get exactly what I want. I have used google takeout to get all my music files back before google play music shuts down and forces the switch to youtube music. Google takeout gives .zip files with 2GB in each. However, it's a random 2GB, no whole albums. I've seen others talk about using ditto for photos or emails with the same takeout format to get the files unzipped and organized all at once. The best example I found shows this:
ditto -x -k -V takeout-20190710T165610Z-001.zip \
takeout-20190710T165610Z-002.zip \
takeout-20190710T165610Z-003.zip \
takeout-20190710T165610Z-004.zip \
takeout-20190710T165610Z-005.zip \
takeout-20190710T165610Z-006.zip \
takeout-20190710T165610Z-007.zip \
takeout-20190710T165610Z-008.zip \
takeout-20190710T165610Z-009.zip \
takeout-20190710T165610Z-010.zip \
result 1>log.txt 2>&1
I can't find what -x, -k, and -V mean. Do I need them?
I get the error messages:
>>> Copying /Users/erin/Desktop/takeout/takeout-20201011T010128Z-001.zip
ditto: Couldn't read PKZip signature
>>> Copying /Users/erin/Desktop/takeout/takeout-20201011T010128Z-025.zip
ditto: /Users/erin/Desktop/takeout/takeout-20201011T010128Z-027.zip/Takeout/Google Play Music/Tracks/Led Zeppelin - Led Zeppelin III (1994 Rema(002).mp3: Not a directory
ditto: Unknown compression type
 
Joined
Jan 25, 2017
Messages
1,322
Reaction score
117
Just type ditto and it will show you the options.

<options> are any of:


-h print full usage


-v print a line of status for each source copied


-V print a line of status for every file copied


-X do not descend into directories with a different device ID





-c create an archive at dst (by default CPIO format)


-x src(s) are archives


-z gzip compress CPIO archive


-j bzip2 compress CPIO archive


-k archives are PKZip


--keepParent parent directory name src is embedded in dst_archive


--arch archVal fat files will be thinned to archVal


multiple -arch options can be specified


archVal should be one of "ppc", "i386", etc


--bom bomFile only objects present in bomFile are copied


--norsrc don't preserve resource data


--noextattr don't preserve extended attributes


--noqtn don't preserve quarantine information


--noacl don't preserve ACLs


--sequesterRsrc copy resources via polite directory (PKZip only)


--nocache don't use filesystem cache for reads/writes


--hfsCompression compress files at destination if appropriate


--nopreserveHFSCompression don't preserve HFS+ compression when copying files


--zlibCompressionLevel num use compression level 'num' when creating a PKZip archive


--password request password for reading from encrypted PKZip archive
 
Joined
Mar 30, 2018
Messages
4
Reaction score
0
Just type ditto and it will show you the options.

<options> are any of:


-h print full usage


-v print a line of status for each source copied


-V print a line of status for every file copied


-X do not descend into directories with a different device ID





-c create an archive at dst (by default CPIO format)


-x src(s) are archives


-z gzip compress CPIO archive


-j bzip2 compress CPIO archive


-k archives are PKZip


--keepParent parent directory name src is embedded in dst_archive


--arch archVal fat files will be thinned to archVal


multiple -arch options can be specified


archVal should be one of "ppc", "i386", etc


--bom bomFile only objects present in bomFile are copied


--norsrc don't preserve resource data


--noextattr don't preserve extended attributes


--noqtn don't preserve quarantine information


--noacl don't preserve ACLs


--sequesterRsrc copy resources via polite directory (PKZip only)


--nocache don't use filesystem cache for reads/writes


--hfsCompression compress files at destination if appropriate


--nopreserveHFSCompression don't preserve HFS+ compression when copying files


--zlibCompressionLevel num use compression level 'num' when creating a PKZip archive


--password request password for reading from encrypted PKZip archive
Thanks! Do you have any experience doing what I am trying to accomplish? Any idea if that works?
 
Top