Q: change in key / preserving dir timestamp

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
Lex
Junior Member
Junior Member
Posts: 3
Joined: 2012-01-07, 23:52 UTC

Q: change in key / preserving dir timestamp

Post by *Lex »

Hello, I have two questions:
1) Recently I've moved my home - is there possibility to change this part of my TC reg key?
2) I'd like to make local backups of my site's ftp from time to time. Preserving time/date while downloading files works fine - but why it does not for directories? Is this possible with TC or should I use some other tool/plugin? If some other tool/plugin - could you recommend me one please?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50937
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

1) Yes, you need to contact me by e-mail with all the old and new address details, and your licence number.

2) No, this isn't supported for directories - Windows changes the timestamps anyway if you change something inside. For automatic backups, I recommend that you create a small php script which packs the files to a tar.gz file, and then auto-download the file daily (e.g. with wget). I'm using something similar for daily forum backups.
Author of Total Commander
https://www.ghisler.com
Lex
Junior Member
Junior Member
Posts: 3
Joined: 2012-01-07, 23:52 UTC

Post by *Lex »

Thank you for the answers!

1) All right. As I understand: by this one with "support" word at start?

2) Oh, hmm... I'm not really an expert in php - can you tell me how such small script should look like? I would prefer not to reinvent this whole wheel again ;)
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50937
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Sorry, I don't have any for file backups. In my script, I'm simply calling the passthru() function to call a shell command. However, passthru may be disabled on your server for security reasons.
Author of Total Commander
https://www.ghisler.com
Lex
Junior Member
Junior Member
Posts: 3
Joined: 2012-01-07, 23:52 UTC

Post by *Lex »

Hehe, well, I dont even know shell commands :D All I know about FTP is how to upload/download files by using some client. So before any tests on this "magical php function" I will need to learn how to correctly create such shell command.
Post Reply