GithubHelp home page GithubHelp logo

Comments (10)

abraunegg avatar abraunegg commented on May 12, 2024 1

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.

abraunegg avatar abraunegg commented on May 12, 2024 1

@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.

abraunegg avatar abraunegg commented on May 12, 2024

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.

gustiarto avatar gustiarto commented on May 12, 2024

Nope, i use command:

onedrive --synchronize --upload-only
Still cant solve my problem

I make cron job for my web server

  1. zip web file
  2. upload that file to onedrive
  3. 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.

diman82 avatar diman82 commented on May 12, 2024

@abraunegg Any estimations when this feature might be added?

from onedrive.

abraunegg avatar abraunegg commented on May 12, 2024

@diman82, @gustiarto

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.

abraunegg avatar abraunegg commented on May 12, 2024

@diman82, @gustiarto
Any update from your side?

from onedrive.

diman82 avatar diman82 commented on May 12, 2024

@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.

abraunegg avatar abraunegg commented on May 12, 2024

Merged PR #96

from onedrive.

lock avatar lock commented on May 12, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.