-
Reading the documentation, there are clear examples of exporting to an externally-mounted disk or NAS. Is it possible to specify a ssh destination similar to how rsync works? e.g. > osxphotos export user@192.168.0.3:/home/photos_backup --retry 3 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
It is not currently possible to do this directly but there is a work-around (see below). Implementing something like this would take some re-architecture of the current code which requires inspection of the exported files to determine if one needs to be updated. OSXPhotos creates an export database (usually in the export folder) that could be stored locally and queried to see which files need to be updated so it's feasible but would require some code changes. I'm willing to open an issue for this (it would enable other backends like S3) but I'm very busy at the moment so this is likely very far down the road unless someone wants to submit a PR. As a work around you could do an export to local disk and use the
In this example, "exported" causes the command to be applied to any file that has been exported or updated. The OSXPhotos template system is used to specify the file path for rsync and the rsync
Commands run synchronously so the
I tested this on my system and it appeared to work as expected. I am not a big rsync user so I don't know what happens if the target file already exists (for example, the photo was edited in Photos so it is being re-exported). You may need to account for that but I'm sure there's an rsync option. |
Beta Was this translation helpful? Give feedback.
It is not currently possible to do this directly but there is a work-around (see below). Implementing something like this would take some re-architecture of the current code which requires inspection of the exported files to determine if one needs to be updated. OSXPhotos creates an export database (usually in the export folder) that could be stored locally and queried to see which files need to be updated so it's feasible but would require some code changes. I'm willing to open an issue for this (it would enable other backends like S3) but I'm very busy at the moment so this is likely very far down the road unless someone wants to submit a PR.
As a work around you could do an export to l…