You are here: PSPad forum > English discussion forum > [Feature Request] Allow timestamps in Backup Folder/Path

[Feature Request] Allow timestamps in Backup Folder/Path

#1 [Feature Request] Allow timestamps in Backup Folder/Path

Posted by: mgutt | Date: 2020-09-24 07:48 | IP: IP Logged

My backup settings is "Folder for File Backup" and Autosave is set to "1 min". By that it automatically saves the file to "C:\backup\", but as it does not contain a timestamp, it isn't really a "backup". I like to have something similar to this:

C:\pspadbackup\{SET TS=%time: =0% && call echo %date:~6,4%%date:~3,2%%date:~0,2%}\{echo %TS:~0,2%%TS:~3,2%%TS:~6,2%}\

Which would return this:
C:\pspadbackup\20200924\094107\projectname\index.html

Or even better would be a solution that allows timestamps in the file extension:
C:\pspadbackup\projectname\index.20200924_094107.html

P.S. the backup path is buggy since one of the last pspad versions. At the moment "C:\pspadbackup" becomes a subfolder of the "BackUp dir for FTP Files". This means it becomes this:
C:\\pspadftp\c\pspadbackup\

Options: Reply | Quote | Up ^






Editor PSPad - freeware editor, © 2001 - 2020 Jan Fiala, Hosted by Webhosting TOJEONO.CZ, design by WebDesign PAY & SOFT, code Petr Dvořák, Privacy policy and GDPR