-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
import: Allow pushing imported files to remote #4527
Comments
The To keep backwards compatibility, dvc files without |
So the plan of action is:
That third point could instead have been "only update the import if |
|
Does
So if we're still having to differentiate .dvc files based on contents of Also, what about |
@jorgeorpinel I'll answer in the PR, I'm getting confused between here, the PR and the docs PR! |
Currently, files imported by
dvc import
come into the local cache, but do not getpush
ed to any remotes. This can be useful in some cases, however at other times it might be desirable to make full backups of imported files, while still retaining the ability to update the local copies viadvc update
.Discussion with @efiop in Discord at https://discordapp.com/channels/485586884165107732/563406153334128681/751199400931491900 and https://discordapp.com/channels/485586884165107732/565699007037571084/751203534351106119.
To provide this option, it should be enough to just alter
dvc/dvc/output/base.py
Lines 463 to 467 in 79e8e4e
For the CLI, we though
dvc import --backup
conveys the meaning. For the DVCfile, an addition toouts
:So for imports with
backup: True
, dvc knows:dvc add
, so do not interact with the import source, only with the DVC remoteThe idea is for imports with
--backup
to be severed from their import source completely unless the user callsdvc update
explicitly.The text was updated successfully, but these errors were encountered: