leocrawford / picasawebsync

Sync local directories with picasaweb
MIT License
59 stars 16 forks source link

--skip Syntax? #16

Closed g88704 closed 8 years ago

g88704 commented 10 years ago

Hello,

thanks for your great tool and sorry for using the issue-system for a generic question.

In "download" mode I want to exclude the remote folders "Auto Backup" and "Profile Photos". I think this should be possible with the "--skip" or "-s" option but I don't know how the command line syntax must look like to achieve this.

Please can you give a short example for the "--skip" parameter?

Thanks and Regards

Michael

leocrawford commented 10 years ago

Hi,

The --s options are simply unix style wildcards (? and *). Details from the library I use are here: https://docs.python.org/2/library/fnmatch.html.

They are applied to the filenames on the local side and the title on the server side. Thinking about it, I should probably have client and sever skips as separate arguments.

I'm currently testing the following, which I think should work (note the last two ignore entries)

ignore="_/_ /AlbumArt_.jpg .ini .highlight .MOD .db .TXT .THM .info . bmp .txt .CR2 Auto-Backup_ Hangout:" python $SCRIPT_DIR/picasawebsync.py -v -d /c/photos/Leo/ /c/photos/Shared/ -dd - m syncUpload --purge -c2 -f photo -s $ignore >> $V_LOGS 2>&1

Leo

On 2 May 2014 07:27, Michael Weisser notifications@github.com wrote:

Hello,

thanks for your great tool and sorry for using the issue-system for a generic question.

In "download" mode I want to exclude the remote folders "Auto Backup" and "Profile Photos". I think this should be possible with the "--skip" or "-s" option but I don't know how the command line syntax must look like to achieve this.

Please can you give a short example for the "--skip" parameter?

Thanks and Regards

Michael

— Reply to this email directly or view it on GitHubhttps://github.com/leocrawford/picasawebsync/issues/16 .

leocrawford commented 10 years ago

Hi. Tests exposed a bug which I'm currently working on. Will release a new version shortly. Thanks for pointing this out, and apologies for the inconvenience

Leo

leocrawford commented 10 years ago

Hi. Just to let you know the latest release now has the --skip-server option which should do what you need. As -s they are simply glob expressions. Will try and tidy up docs this week. On 5 May 2014 18:33, "Leo Crawford" leo@leocrawford.org.uk wrote:

Hi,

The --s options are simply unix style wildcards (? and *). Details from the library I use are here: https://docs.python.org/2/library/fnmatch.html .

They are applied to the filenames on the local side and the title on the server side. Thinking about it, I should probably have client and sever skips as separate arguments.

I'm currently testing the following, which I think should work (note the last two ignore entries)

ignore="_/_ /AlbumArt_.jpg .ini .highlight .MOD .db .TXT .THM .info . bmp .txt .CR2 Auto-Backup_ Hangout:" python $SCRIPT_DIR/picasawebsync.py -v -d /c/photos/Leo/ /c/photos/Shared/ -dd - m syncUpload --purge -c2 -f photo -s $ignore >> $V_LOGS 2>&1

Leo

On 2 May 2014 07:27, Michael Weisser notifications@github.com wrote:

Hello,

thanks for your great tool and sorry for using the issue-system for a generic question.

In "download" mode I want to exclude the remote folders "Auto Backup" and "Profile Photos". I think this should be possible with the "--skip" or "-s" option but I don't know how the command line syntax must look like to achieve this.

Please can you give a short example for the "--skip" parameter?

Thanks and Regards

Michael

— Reply to this email directly or view it on GitHubhttps://github.com/leocrawford/picasawebsync/issues/16 .