Naming convention

No more questions - please go to http://www.syncovery.com/forum instead

Moderator: SuperFlexible Administrators

Naming convention

Postby lucky81 on Tue May 19, 2015 7:25 pm

Hi team,


Based on this article, I should be able to use variables in the profile name and then use it as a ZIP file name (see my screenshot attached)? Am I correct?

The reason why I am doing this is I need to avoid "Put current time stamp in the ZIP file name" option as it creates spaces:
Code: Select all
Backup 9316.536870913.9316-2015-05-19 15.51.45.zip


I can not have spaces in the file name. I need something like:
Code: Select all
ProfileName_2015-05-19_155145.zip


Can this be automated in Syncovery in any way?
Attachments
2015-05-20_09'35'57'.jpg
Screenshot
2015-05-20_09'35'57'.jpg (210.17 KiB) Viewed 1438 times
lucky81
 
Posts: 4
Joined: Tue May 19, 2015 6:51 pm

Re: Naming convention

Postby superflexible on Wed May 20, 2015 3:02 am

Hello,
you cannot use variables in profile names.

Unfortunately it's not possible to get the names you need. The only solution would be running a separate script or tool when Syncovery is finished. You can invoke it via Job->Execute before/after.
User avatar
superflexible
Site Admin
 
Posts: 2478
Joined: Thu Dec 31, 2009 3:08 pm

Re: Naming convention

Postby lucky81 on Wed May 20, 2015 3:08 am

Generally speaking, in the IT world, it is a very bad idea to use filenames/directories with spaces in them. Try to avoid it at all cost.
I am guessing it should be easy to implement at least:
Code: Select all
Backup_9316.536870913.9316-2015-05-19_15.51.45.zip


Thanks for your prompt reply. I will deal with it somehow.
lucky81
 
Posts: 4
Joined: Tue May 19, 2015 6:51 pm

Re: Naming convention

Postby lucky81 on Wed Aug 24, 2016 10:17 pm

I was able to achieve this by creating ReplaceSpacesWithUnderscoresOfZipFiles.bat file in my Syncovery folder:

Code: Select all
@Echo off
@cd /d "%*"
forfiles /m *.zip /C "cmd /e:on /v:on /c set \"Phile=@file\" & if @ISDIR==FALSE ren @file !Phile: =_!"


And in my "Profile Settings" > "Job" > "Execute command or script before / after ..." >
ReplaceSpacesWithUnderscoresOfZipFiles.bat $RIGHT
lucky81
 
Posts: 4
Joined: Tue May 19, 2015 6:51 pm


Return to Windows Support * new forum: www.syncovery.com/forum

cron