I'm on Android 11 and I want to backup my files to a drive but I don't want it to change the modified date for folders and files...
Asked
Active
Viewed 93 times
adb exec-out 'cd /sdcard; tar -cf - .' > backup.tar– Robert Feb 06 '21 at 16:12backup.tar(specify an absolute path likeF:\backup.taron Windows. – Robert Feb 06 '21 at 17:03adb pull -a /sdcardpreserves mtime – alecxs Feb 06 '21 at 17:17adbinstalled on your PC, enabled on your phone and your phone connected via USB. Tryadb shellfirst. if that works use the backup command. If that still does not work open the created file in an text editor and read the error message. – Robert Feb 06 '21 at 17:57/system/bin/sh: cd /storage/emulated/0: inaccessible or not found /system/bin/sh: tar -cf - .\: inaccessible or not found– 29cengi Feb 06 '21 at 18:05