Comments (10)
Because after upload complete, i deleted the file. My local hardisk so tiny.
The way that the client works (currently) is that it replicates the local / remote state. If a file is deleted locally or remotely, that state will be reflected.
So essentially what your looking for is the following:
onedrive --synchronize --upload-only --no-remote-delete
However --no-remote-delete
is not an option at present - thus I don't have a 'full' solution for you at present.
from onedrive.
@diman82
This actually has an active branch locally where I was working on this before a few bug related issues raised which take priority. Once they are closed off & merged, I will be looking at this again. Time frame ~ 1 week I would say pending no bug issues raised.
from onedrive.
Generally, unless you want to do a bi-directional sync that constantly runs, do not use monitor mode.
How can i use Upload-Only Option without sync remote from local ?
You need to use the following command:
onedrive --synchronize --upload-only
For further command options, refer to:
onedrive --help
from onedrive.
Nope, i use command:
onedrive --synchronize --upload-only
Still cant solve my problem
I make cron job for my web server
- zip web file
- upload that file to onedrive
- delete file that file
Because my storage of webserver so tiny, i wont to save the backup zip on that server.
"I want to "upload only" like on web-access of OneDrive, so when local file has been removed, on OneDrive not deleted". Like just for store the backup.
Because after upload complete, i deleted the file. My local hardisk so tiny.
from onedrive.
@abraunegg Any estimations when this feature might be added?
from onedrive.
Please can you help test PR #96
git clone https://github.com/abraunegg/onedrive.git
cd onedrive
git fetch origin pull/96/head:pr96
git checkout pr96
make
make install
Local testing of this PR below:
./onedrive --synchronize --verbose --upload-only --no-remote-delete
Loading config ...
Using Config Dir: /root/.config/onedrive
No config file found, using defaults
Initializing the OneDrive API ...
Opening the item database ...
All operations will be performed in: /root/OneDrive
Initializing the Synchronization Engine ...
Account Type: personal
Default Drive ID: <redacted>
Default Root ID: <redacted>
Remaining Free Space: 5364645376
Fetching details for OneDrive Root
OneDrive Root exists in the database
Syncing changes from local path only - NOT syncing data changes from OneDrive ...
Uploading differences of .
Processing root
The directory has not changed
Processing myfile.txt
The file has been deleted locally
Skipping remote delete as --upload-only & --no-remote-delete configured
Uploading new items of .
Skipping item - invalid symbolic link: ./link1
Validated that file still remains on OneDrive after local delete.
from onedrive.
@diman82, @gustiarto
Any update from your side?
from onedrive.
@abraunegg Seems to be working as expected!
ubuntu@ip-172-31-44-197:/mnt/data/transmission/completed$ onedrive --synchronize --upload-only --no-remote-delete --upload-only --destination-directory Movies --verbose
Loading config ...
Using Config Dir: /home/ubuntu/.config/onedrive
Initializing the OneDrive API ...
Opening the item database ...
All operations will be performed in: /mnt/data/transmission/completed/
Initializing the Synchronization Engine ...
Account Type: business
Default Drive ID: b!oK34j0_s7ECzhM69EVarJmJ84iWNmYdPip2E6eQXOOfEKaWw6M1nRb7c1XwYkQzn
Default Root ID: 015UARYDN6Y2GOVW7725BZO354PWSELRRZ
Remaining Free Space: 4804976087207
Fetching details for OneDrive Root
OneDrive Root exists in the database
Syncing changes from local path only - NOT syncing data changes from OneDrive ...
Uploading differences of .
Processing root
The directory has not changed
Processing Видеокурс по ремонту ноутбуков от PC Expert. Бесплатно._Full-HD.mp4
The file has not changed
Uploading new items of .
OneDrive Client requested to create remote path: ./Lynda - Microsoft SQL Server 2016 Essential Tr
aining
The requested directory to create was not found on OneDrive - creating remote directory: ./Lynda
- Microsoft SQL Server 2016 Essential Training
Successfully created the remote directory ./Lynda - Microsoft SQL Server 2016 Essential Training
on OneDrive
OneDrive Client requested to create remote path: ./Lynda - Microsoft SQL Server 2016 Essential Tr
aining/Exercice Files
The requested directory to create was not found on OneDrive - creating remote directory: ./Lynda
- Microsoft SQL Server 2016 Essential Training/Exercice Files
Successfully created the remote directory ./Lynda - Microsoft SQL Server 2016 Essential Training/
Exercice Files on OneDrive
Uploading file ./Lynda - Microsoft SQL Server 2016 Essential Training/Exercice Files/Ex_Files_SQL
_Server2016_EssT.zip ...
Uploading fragment: 0-7259/7259
Remaining free space: 4804416774552
done.
Remaining free space: 4804416774552
from onedrive.
Merged PR #96
from onedrive.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
from onedrive.
Related Issues (20)
- Bug: Adding Config on Unraid, --resync not working, "Unable to perform a database vacuum: out of memory" HOT 2
- Bug: Can't connect to microsoft api using docker HOT 6
- Feature Request: Create shareable link to folders HOT 3
- Feature Request: Only sync a specific folder on the drive HOT 2
- Feature Request: Installation Documentation for CentOS HOT 3
- Bug: Unexpected File Size Mismatch in OpenSuSE Repo for Debian 12 HOT 3
- Feature Request: Use .gitignore to skip files and directories HOT 2
- Bug: possible recursive error handling when HTTP2 Framing error received HOT 2
- Bug: Cannot upload-sync big files (>20 mb) HOT 4
- Bug: Crash after configuration change, resync required HOT 2
- Bug: Files on OneDrive vanish after "download size mis-match" error HOT 5
- Bug: Install on Debian 12 fails HOT 3
- Bug: Files modified on upload (doc/docx/xls/xlsx) with SharePoint Shared Libraries HOT 3
- Bug: Inconsistencies When Interrupted During Download Activity HOT 4
- Bug: Process: 374335 ExecStart=/usr/bin/onedrive --monitor (code=exited, status=1/FAILURE) HOT 2
- Bug: Issues with onedrive 2.5.0-rc1 HOT 28
- Bug: Spelling error in message in onedrive-2.5-rc HOT 2
- Bug: Segfault on Downloads HOT 11
- Bug: ERROR: An internal database error occurred: disk I/O error HOT 2
- Bug: Skipping item - invalid name (Microsoft Naming Convention) for aparently good folder names. HOT 3
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 onedrive.