-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide way to override "found other export database files" warning #1546
Comments
Hello fellow osxphotos user! From what I read you (may) have two options:
-F, --ignore-exportdb If exporting to a directory that already
contains an export database and --update is
not specified, do not prompt to continue but
instead continue the export. Normally, if
you export to a directory that already
contains an export database and do not
specify --update, osxphotos will prompt you
to continue. This is because you may be
inadvertently merging two export sets. Use
--ignore-exportdb to skip this prompt and
continue the export. The resulting export
database will contain the combined state of
both export sets. Short option is '-F'
(mnemonic: force export). See also --update. |
Thanks for your help! LOL I’ve been running Qnap’s for myself and clients for over twenty years and never thought about killing the snapshot visibility. That should work. Because I’m running —update the -F command doesn’t work. I already tried that one. |
This warning is because I've accidentally overwritten my own backup. In most cases I don't see a valid use case for exporting to the same parent directory. I could extend the |
@jasonhollis I'll add a way to override this warning. In the meantime, you can use |
Damn!
I knew would have something in there. I did try /Y. So it’s just a YES at the end of the line? That’s good to know but oPromessa<https://github.com/oPromessa> helped me out with something I should have been doing anyway. As I mentioned I’ve been running Qnaps forever and for a lot of clients. The snapshot setup has saved the asses of many customers. Most of these customers are lawyers, barristers, and non-it folks. Having the snapshots visible in the filesystem on the shares is probably stupid on my part anyway. They are now hidden on about 12 Qnaps.
I probably need to visit the updates you have made and the whole routine I’m using for Bill with Osxphotos. I should probably also document the end to end routine I’m using with launchctl, plist, and shortcuts to insure the share is mounted, fire off osxphotos –update and capture the output from the shell to a little running logfile. In shortcuts it would also be pretty easy to text myself if there were any errors.
I appreciate you tracking my plight! I should probably remind David Sparks that he needs to check out your code. I know if we could get him to look, he would be fascinated. He’s an amateur photographer.
Kind regards,
Jason
From: Rhet Turnbull ***@***.***>
Date: Thursday, 16 May 2024 at 23:03
To: RhetTbull/osxphotos ***@***.***>
Cc: Jason Hollis ***@***.***>, Mention ***@***.***>
Subject: Re: [RhetTbull/osxphotos] Snapshots being detected and are scaring Osxphotos (Issue #1546)
@jasonhollis<https://github.com/jasonhollis> I'll add a way to override this warning. In the meantime, you can use yes | osxphotos export ... to force the "Y" entry to override the warning.
—
Reply to this email directly, view it on GitHub<#1546 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AEWUHAQ65E4LK6AC6ZRAJVDZCSVBPAVCNFSM6AAAAABHYGV2FSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMJVGE4TGMJXHE>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Yes, the |
Legend!
Best regards
Jason
You should check out NextDNS<https://nextdns.io/?from=s8kadggp>
…________________________________
From: Rhet Turnbull ***@***.***>
Sent: Friday, May 17, 2024 1:37:47 PM
To: RhetTbull/osxphotos ***@***.***>
Cc: Jason Hollis ***@***.***>; Mention ***@***.***>
Subject: Re: [RhetTbull/osxphotos] Provide way to override "found other export database files" warning (Issue #1546)
So it’s just a YES at the end of the line?
Yes, the yes command simply prints y followed by newline to stdout. If you just type it on the command line you'll get an infinite stream of y characters. It's sole purpose is things like this where you need to force a prompt to continue.
—
Reply to this email directly, view it on GitHub<#1546 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AEWUHAROQRB2YBKCKSFQQLDZCV3QXAVCNFSM6AAAAABHYGV2FSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMJWGU3DMMJUHE>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
osxphotos export /Volumes/Photos --exiftool --update --ramdb --download-missing --touch-file --use-photokit --finder-tag-keywords --directory "{folder_album}" --post-command-error continue
Using last opened Photos library: /Users/biaginoguzzo/Pictures/Photos Library-1-3-2024.photoslibrary
WARNING: found other export database files in this destination directory branch. This likely means you are attempting to export files into a directory
that is either the parent or a child directory of a previous export. Proceeding may cause your exported files to be overwritten.
You are exporting to /Volumes/Photos, found .osxphotos_export.db files in:
/Volumes/Photos/@Recently-Snapshot/GMT+10_2024-05-12_0100/.osxphotos_export.db
/Volumes/Photos/@Recently-Snapshot/GMT+10_2024-05-15_0100/.osxphotos_export.db
/Volumes/Photos/@Recently-Snapshot/GMT+10_2024-05-11_0100/.osxphotos_export.db
/Volumes/Photos/@Recently-Snapshot/GMT+10_2024-05-09_0100/.osxphotos_export.db
/Volumes/Photos/@Recently-Snapshot/GMT+10_2024-05-10_0100/.osxphotos_export.db
/Volumes/Photos/@Recently-Snapshot/GMT+10_2024-05-14_0100/.osxphotos_export.db
/Volumes/Photos/@Recently-Snapshot/GMT+10_2024-04-02_0100/.osxphotos_export.db
/Volumes/Photos/@Recently-Snapshot/GMT+10_2024-04-22_0100/.osxphotos_export.db
/Volumes/Photos/@Recently-Snapshot/GMT+10_2024-04-15_0100/.osxphotos_export.db
/Volumes/Photos/@Recently-Snapshot/GMT+10_2024-04-29_0100/.osxphotos_export.db
/Volumes/Photos/@Recently-Snapshot/GMT+10_2024-05-13_0100/.osxphotos_export.db
/Volumes/Photos/@Recently-Snapshot/GMT+10_2024-05-06_0100/.osxphotos_export.db
Do you want to continue? [y/N]: n
It's detecting all of the .osxphotos_export.db in all of the snapshots. I'm glad it detects this and even happier that I do have snapshots, just in case. Now, how do I force the run or automate around this issue? This is killing me. I have my Shortcut Slink and Plist with Launchctl working perfectly. I just need to put this to sleep.
I have tried everything that looked obvious.
The text was updated successfully, but these errors were encountered: