Can we have "Backup/Restore Configuration" functio

Support for Android version of Total Commander

Moderators: white, Hacker, petermad, Stefan2

Post Reply
brahman
Senior Member
Senior Member
Posts: 201
Joined: 2006-04-26, 13:27 UTC

Can we have "Backup/Restore Configuration" functio

Post by *brahman »

Hi,

I was setting up TC Android for some elderly friends, and I was really missing a Backup and Restore function of the different settings and bookmarks.

It would be great if we could have such a function: would make life so much easier on non-rooted devices and setting up TC for friends.

Thanks.
Regards, Brahman
Win10 & 11 Pro x64
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Just add a button with type "change directory" and command
/data/data/com.ghisler.android.TotalCommander

Then you can go to the settings directory without root and backup it to the SD Card.

On the new device, create a button yourself and restore the data. Using Google's cloud backup may not be such a good idea because of the passwords.
Author of Total Commander
https://www.ghisler.com
gwisch
Junior Member
Junior Member
Posts: 19
Joined: 2011-06-27, 09:17 UTC
Location: Berlin

Post by *gwisch »

Sorry, just to be on the safe side: That would be the shared_prefs directory?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Actually "shared_prefs" and "files". The first contains the settings, the second contains the cached icons for the toolbar.
Author of Total Commander
https://www.ghisler.com
gwisch
Junior Member
Junior Member
Posts: 19
Joined: 2011-06-27, 09:17 UTC
Location: Berlin

Post by *gwisch »

Thanks, got it!
galiganu
Junior Member
Junior Member
Posts: 4
Joined: 2016-02-28, 15:51 UTC

Post by *galiganu »

Hi,
Is this saving the settings also for the plugins? Like ftp accounts, lan folders saved, etc.
Thanks!
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

No, plugins save their own settings. You need to use a tool like Helium Backup to save them (no root needed).
Author of Total Commander
https://www.ghisler.com
galiganu
Junior Member
Junior Member
Posts: 4
Joined: 2016-02-28, 15:51 UTC

Thanks!

Post by *galiganu »

Thanks for the tip with Helium. Really does the job without root!
max6
Junior Member
Junior Member
Posts: 9
Joined: 2013-10-20, 10:08 UTC

Post by *max6 »

Hi

When i copy e.g. the a.m. shared_prefs folder to the external SD card, all the files are getting tagged with the actual day and time.

This happens actually also with files not originating from the /data/data/com.ghisler.... folder
e.g.
- External SD card to External SD card
- Internal Memory to External SD card
- Internal Memory to Internal Memory

How can I avoid this ? :roll:

Thank you very much !
Laptop: Windows 10 x64, TC 9.51 64 bit with personal license
Mobile: Galaxy S7 with Android 8.0.0, TC 3.11
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

You can't avoid it - you can thank Google for that:

This is a very longtime Android bug: It's not possible to set/copy the timestamp of files on Android due to missing permissions of the user to set them. Only the root user is allowed to set/copy the timestamp.

Here are the relevant bug reports in the Android bug tracker:

File setLastModified always returns false
https://code.google.com/p/android/issues/detail?id=1992

setLastModified() always fails on Xoom unless running as root
https://code.google.com/p/android/issues/detail?id=18624

File.setLastModified() always returns false on Samsung Galaxy Nexus
https://code.google.com/p/android/issues/detail?id=25460
Author of Total Commander
https://www.ghisler.com
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Post by *DrShark »

ghisler(Author) wrote:Just add a button with type "change directory" and command
/data/data/com.ghisler.android.TotalCommander
It's also possible to add that path to a Bookmark. To do this without previously going to that data/data/... folder using the mentioned CD command button on not-rooted device, user can edit some existing bookmark of some other folder.
ghisler(Author) wrote:... plugins save their own settings. You need to use a tool like Helium Backup to save them (no root needed).]
Since plugins have FS interface, for this task each could have add a virtual folder showing the settings files of own data/data/com.<plugin name> folder. Maybe it's possible to implement a copy from/to such plugin virtual folder and real folder of the device in opposite TC panel?

I also have a question about the location of file help.htm of installed TC4A. I would like to open it with alternative html viewer because built-in Android's has very unconvenient Search function.
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

You can extract the help.htm from the apk file. Or view it online here:
https://www.ghisler.com/android.htm

There are links to the various language versions near the top.
Author of Total Commander
https://www.ghisler.com
Post Reply