Automatically changing paths of profiles

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

Moderator: SuperFlexible Administrators

Automatically changing paths of profiles

Postby Ivangelion on Wed Mar 30, 2011 9:39 pm

Hello,

Is there a way for us to automatically change sync paths of profiles? For example, we now sync by dates. Files created on 2011/3/30 will be in the folder of \path\to\2011\3\30. So I created 3 profiles for recent 3 days: yesterday, today and tomorrow, and I had to manually change the path when one day passed.

So can I just run a batch file to replace the profile path using Windows Scheduled Tasks?

I've noticed that all profile settings seemed to be in one ini config file, but there were mojibakes in it and I didn't understand why. I've tested to replace path strings in it, and the path change took effect after I restart the service (I use Service Scheduler), but some settings were gone, like Copying Directions, and "Process Security And Shares" or "Alternate Data Streams" in Special tab were mysteriously checked.

Thank you in advance.
Ivangelion
 
Posts: 42
Joined: Mon Dec 27, 2010 10:18 pm

Re: Automatically changing paths of profiles

Postby superflexible on Thu Mar 31, 2011 6:37 am

You can use variables, for example

D:\Backup\$YEAR\$MONTHNUM\$DAYOFMONTH

See also http://www.superflexible.com/docprofi.htm.

The INI file is not human readable or editable. You must not edit it, or you will likely corrupt it.
User avatar
superflexible
Site Admin
 
Posts: 2478
Joined: Thu Dec 31, 2009 3:08 pm

Re: Automatically changing paths of profiles

Postby Ivangelion on Thu Mar 31, 2011 8:02 am

Wow that's cool. But I read the page you gave, and it seemed that $MONTHNUM and $DAYOFMONTH only works for date/month folders with a leading "0", e.g. "09"?

If this is the case, Can I request a feature like this, i.e. adding two path variables for current months/date with no leading "0"?

Also can I use arithmetic on paths, like folders of yesterday would be $DAYOFMONTH-1?

Thank you.
Ivangelion
 
Posts: 42
Joined: Mon Dec 27, 2010 10:18 pm

Re: Automatically changing paths of profiles

Postby superflexible on Thu Mar 31, 2011 8:14 am

Hi,

yes with leading zero. You cannot do arithmetic.

You could use your own script to set environment variables and use them, for example %MYVARIABLE%.

Or you could invoke the job from your script and override the left and right path, for example

ExtremeSyncService.exe /RUNX="Profile Name" /S /M /P /T /LEFT="C:\Left" /RIGHT="D:\Right"

Most of these parameters are documented on the same page as mentioned above.

/P and /T mean that the profile is run in "parallel" with progress information sent to the GUI, and in a "thread".
User avatar
superflexible
Site Admin
 
Posts: 2478
Joined: Thu Dec 31, 2009 3:08 pm

Re: Automatically changing paths of profiles

Postby Ivangelion on Thu Mar 31, 2011 8:36 am

Ok thanks. Can I request a feature like adding two path variables for current months/date without leading zeros? It would be greatly appreciated.
Ivangelion
 
Posts: 42
Joined: Mon Dec 27, 2010 10:18 pm

Re: Automatically changing paths of profiles

Postby superflexible on Sat Apr 02, 2011 3:21 pm

I added some new variables in today's update 5.41, particularly $DAYOFMONTHSD and $MONTHNUMSD for single digit values (well, 1-31 for example), and some variables for yesterday:
$YESTERDAY, $YESTERDAYSD, $YDWEEKDAY, $YDMONTHNUM, $YDMONTHNUMSD, $YDYEAR

Please see http://www.superflexible.com/docprofi.htm.
User avatar
superflexible
Site Admin
 
Posts: 2478
Joined: Thu Dec 31, 2009 3:08 pm

Re: Automatically changing paths of profiles

Postby Ivangelion on Tue Apr 05, 2011 9:56 pm

WOOOW~~! Your great support is really something and touched us deeply! Thank you so much for your swift and kind reply!! :D :D :D
Ivangelion
 
Posts: 42
Joined: Mon Dec 27, 2010 10:18 pm

Re: Automatically changing paths of profiles

Postby Irzichek on Mon Sep 05, 2011 9:31 am

Hello!

As it is possible to transfer a path (left or right) as argument for command line in section of performance of the job BEFORE or AFTER in GUI, not from shell command line?
Irzichek
 
Posts: 3
Joined: Mon Sep 05, 2011 9:24 am

Re: Automatically changing paths of profiles

Postby superflexible on Mon Sep 05, 2011 4:24 pm

Sorry I don't understand the question. You will find an overview of our variables and command line paramters here:

http://www.superflexible.com/docprofi.htm
User avatar
superflexible
Site Admin
 
Posts: 2478
Joined: Thu Dec 31, 2009 3:08 pm

Re: Automatically changing paths of profiles

Postby Irzichek on Tue Sep 06, 2011 2:55 am

Please, look at an applied picture

--------------------------------

There are folders of the left and right destinations. How to me to transfer in a command line a full path to one of these folders by a call of the external program? If I periodically have to change a path to one of the parties, I can forget to make changes to "job->execute programm..." by a call of the external program.
Actually a problem wider:
What will occur, if I rename the profile name, but I will forget to change the corresponding name in other profile which causes the first?

----------------------------
Why it is impossible to use in a command line of a quote? How I can specify a path containing blanks in a command line?
Example:
C:\Program Files (x86)\renamer\ReNamer.exe /rename \\NetworkStorage\Temporary Items\*.*
______________^this______________________________________________________^this
Attachments
SuperFlex.png
SuperFlex.png (12.7 KiB) Viewed 1439 times
Irzichek
 
Posts: 3
Joined: Mon Sep 05, 2011 9:24 am

Next

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

cron