Command Line Options

Get help for specific problems
Posts: 3
Joined: 2 Feb 2012

kmfdg

Is there reference document with all the available command line options for
FFS? I am looking for a way to start FFS with the left directory and a custom
.ffs_gui settings file.
User avatar
Site Admin
Posts: 7210
Joined: 9 Dec 2007

Zenju

There is none, basically because FFS doesn't offer any (advanced) command line
options. However two modes are supported: 1. add a .ffs_batch or .ffs_gui file
as first argument 2. add two directories as first and second argument
However I just saw latter is broken due to a wxWidgets bug, sigh.
Posts: 3
Joined: 2 Feb 2012

kmfdg

If I can't pass in a .ffs_gui file on the command line, can I at least have
FFS use a default .ffs_gui file?
User avatar
Site Admin
Posts: 7210
Joined: 9 Dec 2007

Zenju

You can pass a .ffs_gui file, passing two directories is broken.
Posts: 3
Joined: 2 Feb 2012

kmfdg

I want to pass in one directory and still use my default gui settings. Is this
possible? Or can you make it possible?
User avatar
Site Admin
Posts: 7210
Joined: 9 Dec 2007

Zenju

Currently not, either you pass a (number of) .ffs_gui/.ffs_batch files or a
(number of) directories.
Although latter is currently broken via FreeFileSync.exe it is working through
for FreeFileSync_win32.exe if the directories do not contain spaces.

>Or can you make it possible?
Always everything is possible with software, but it comes down to "costs".
But first there's the design question and analysis of the scenario.
I assume you are trying to integrate FreeFileSync into another tool?
User avatar
Site Admin
Posts: 7210
Joined: 9 Dec 2007

Zenju

Fixed the command-line issues:
[404, Invalid URL: http://www.2shared.com/file/n23DP8ok/FreeFileSync_v51_beta_setup.html]
Posts: 4
Joined: 18 Mar 2012

jacksonmacd54

Would be useful to combine all three parameters - two folders plus a .ffs_gui
file. I want to startup FFS with "*\" on the Exclude filter subfolders are
excluded and View Equal files so that none of the files in the folders are
suppressed from view. Tried it, but no success.

Launching FFS from a file manager calles XYplorer. So far, it looks like a
powerful combination of software.
Posts: 3
Joined: 4 Aug 2008

kreatorr

> Fixed the command-line issues: [404, Invalid URL: http://www.2shared.com/file/n23DP8ok/FreeFileSync_v51_beta_setup.html]



Has this fix been integrated into the latest version, 5.2?

It's a very useful feature and on a related note, I was wondering if the
start-up options allow for the synchronization options to be set as well, i.e.
file content comparison vs file date comparison.
User avatar
Site Admin
Posts: 7210
Joined: 9 Dec 2007

Zenju

Yes it's integrated into the current version. Concerning future enhancements
of the command line I'll plan to support adding a .ffs_gui/.ffs_batch file
together with a bunch of directories to create new sync configs on the fly.
Posts: 3
Joined: 4 Aug 2008

kreatorr

> Yes it's integrated into the current version. Concerning future enhancements
of the command line I'll plan to support adding a .ffs_gui/.ffs_batch file
together with a bunch of directories to create new sync configs on the fly.



that would be super!
User avatar
Site Admin
Posts: 7210
Joined: 9 Dec 2007

Zenju

The next version contains a basic command line syntax to allow merging multiple configurations and/or setting directory pairs externally. Here's the new version for testing, let me know if there are any problems:

[404, Invalid URL: http://freefilesync.sourceforge.net/FreeFileSync_5.19_beta_Windows_Setup.exe]

You can get a syntax description via

FreeFileSync.exe /?
Posts: 141
Joined: 10 Sep 2009

srjones67

I tried FreeFileSync.exe /?

and I get. And I've tried on 2 different PC's. On Win7 x86 and on Win7 X64.

---------------------------
Error
---------------------------
Cannot open file '/?'.
---------------------------
OK
---------------------------
User avatar
Site Admin
Posts: 7210
Joined: 9 Dec 2007

Zenju

@srjones67: Just tested with the version linked above: works for me.
Posts: 141
Joined: 10 Sep 2009

srjones67

That works. I know I had v5.19 installed I checked. But I downloaded from the link above again and all is well. Thanks.
User avatar
Site Admin
Posts: 7210
Joined: 9 Dec 2007

Zenju

The beta version is generally a development snapshot and is updated frequently. The major version of all betas is the same, but they show a different build number. Usually it is required to download the beta version again each time I announce a new feature.
Posts: 6
Joined: 14 Jul 2010

redsandro2

Is there a way to change the `comparison mode` through a switch?

`~$ FreeFileSync /some/path/ /other/path/` mirrors <some path> to <other path>. I would like to set this to two way from the command line.

I often do a quick `ffs` (my alias for FreeFileSync) between one and another media when I've been working on both.
Posts: 1
Joined: 3 Oct 2013

mmlppk

Hi,

In the feature list, it included "Detect moved and renamed files and folders"
But when I actually rename the souce folder, it re-copy to destination folder.
Is there any command line parameter or setting, that detect renamed file so that when I rename source folder, it won't recopy to destination folder again ?

Thanks
User avatar
Site Admin
Posts: 7210
Joined: 9 Dec 2007

Zenju

Hi,

In the feature list, it included "Detect moved and renamed files and folders"
But when I actually rename the souce folder, it re-copy to destination folder.
Is there any command line parameter or setting, that detect renamed file so that when I rename source folder, it won't recopy to destination folder again ?

Thanksmmlppk
Enable "detect moved files" in synchronization options.
Posts: 6
Joined: 14 Jul 2010

redsandro2

I opened a bug for this a few days ago but it was removed. I'm sure it didn't happen on purpose. I just hate sourceforge and sourceforge hates me.

But since update to 5.21 this doesn't work anymore:

`~$ FreeFileSync /some/path/ /other/path/`

Running Ubuntu 12.10. Gives error: Path not found. The exact same thing has always worked because I use it in a shellscript for backup purposes for a long time.

Can you confirm?
And maybe address my previous post from 2013-08-28?
Thank you. :)
Posts: 141
Joined: 10 Sep 2009

srjones67

Syntax:
FreeFileSync [config files]
[-leftdir directory] [-rightdir directory]

config files
Any number of FreeFileSync .ffs_gui and/or .ffs_batch configuration files.

-leftdir directory -rightdir directory
Any number of alternative directories for at most one config file.
User avatar
Site Admin
Posts: 7210
Joined: 9 Dec 2007

Zenju

I opened a bug for this a few days ago but it was removed. I'm sure it didn't happen on purpose. I just hate sourceforge and sourceforge hates me.

But since update to 5.21 this doesn't work anymore:

`~$ FreeFileSync /some/path/ /other/path/`

Running Ubuntu 12.10. Gives error: Path not found. The exact same thing has always worked because I use it in a shellscript for backup purposes for a long time.

Can you confirm?
And maybe address my previous post from 2013-08-28?
Thank you. :)redsandro2
It's this one.
[404, Invalid URL: https://sourceforge.net/p/freefilesync/support-requests/187/]
Posts: 6
Joined: 14 Jul 2010

redsandro2

Ah thanks Zenju and srjones67.
This is what I was looking for.