Comments (2)
gphotos-sync keeps a DB of the files it has indexed and there are two factors that mean it will not re-download a file that has been removed from the photos folder (or renamed).
- It keeps a 'downloaded' flag for each file and won't attempt a re-download for individual files that are already flagged. This can be overridden with the option --retry-download.
- It also keeps a 'last scan' date once it has done a complete scan of all files in the library. It will filter all searches on google photos with this as the starting date for all subsequent scans. This can be overridden with the option --rescan
So if you want to re-organize your files then:-
- keep your gphotos.sqlite file safe
- don't use --rescan or --retry-download
CAVEAT: if you upgrade the version of gphotos-sync and that upgrade includes an upgrade to the DB schema it will currently flush the DB and rescan from scratch. I could pledge to provide upgrade scripts for the DB but this is quite a bit of extra work and testing - So I think it would be easiest to provide a way to set the 'last scan' date in the DB, or a way to export/import a list of 'already downloaded' files.
from gphotos-sync.
I'll keep this issue open as a reminder that we need some solution next time I need to upgrade the DB schema. If you are going to use gphotos-sync in this way then please back up your gphotos.sqlite files whenever you download a new version of the code.
from gphotos-sync.
Related Issues (20)
- FREEBSD - pstuil dependency too high HOT 2
- Shared photos are removed and then re-added in version 2.14.2 HOT 4
- Incremental Indexing HOT 7
- Comparison to rclone with google-photos backend HOT 1
- Error When Connecting - Running Cloud Flare and NGINX HOT 2
- NFS Share [Errno 28] No space left on device HOT 7
- Error when running gphotos-sync HOT 3
- Container Restarting HOT 5
- Please delete this thread - Sorry. HOT 1
- No new photos HOT 15
- Why are my photos being deleted HOT 5
- Invalid Syntax HOT 4
- Syntax error on syncing folders called '3 years later' HOT 4
- Not working after upgrade to Python 3.12 & gphotos-sync 3.2 HOT 11
- Many 404 client error while downloading HOT 7
- Creating Duplicate Photos Once Finished HOT 10
- Escape special characters HOT 3
- why an image do not have exif data. HOT 6
- Is there any way to make the timezone correct? HOT 3
- using the tool with new oauth rules from June 17, 2024 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gphotos-sync.