# Nightly Copy to G-drive ideas?

**URL:** <https://forum.rclone.org/t/nightly-copy-to-g-drive-ideas/4560>\
**Category:** Help and Support\
**Created:** [January 10, 2018, 8:47am UTC](https://forum.rclone.org/t/nightly-copy-to-g-drive-ideas/4560 "2018-01-10T08:47:48Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![ydkmlt84](https://forum.rclone.org/letter_avatar_proxy/v4/letter/y/e79b87/32.png) [@ydkmlt84](https://forum.rclone.org/u/ydkmlt84)\
**Post date:** [January 10, 2018, 8:47am UTC](https://forum.rclone.org/t/nightly-copy-to-g-drive-ideas/4560/1 "2018-01-10T08:47:48Z")

</div>

More or less I am looking for someone to brainstorm with me. Long story short I have tons of data (roughly 10TB) I need to copy to my GDrive. It is not from another cloud storage, it will be a local to remote copy. What I would like to do is run some sort of rclone copy, nightly, for a certain amount of time. Then start it again the next night…until its all copied.  
I know I could do something like this with a cronjob but the part that I can’t wrap my head around is this… How could I tell rclone what to upload and how long to upload it? Could I do it by an amount of data, number of folders/files? Should I separately create file lists using some criteria, then copy from that list? Any ideas/advice would be much appreciated…thanks in advance.

---

<div class="post-metadata">

**Author:** ![ncw](https://forum.rclone.org/user_avatar/forum.rclone.org/ncw/32/18_2.png) [@ncw](https://forum.rclone.org/u/ncw)\
**Post date:** [January 10, 2018, 9:33am UTC](https://forum.rclone.org/t/nightly-copy-to-g-drive-ideas/4560/2 "2018-01-10T09:33:07Z")

</div>

> [@ydkmlt84](#):
>
> How could I tell rclone what to upload and how long to upload it?

rclone will pick up from where it left off so you don't need to do that.

In fact you might find that [bwlimit](https://rclone.org/docs/#bwlimit-bandwidth-spec) is what you want - you can set a bandwidth limit for the night and for the day. The bandwidth limit for the day could be very small (don't use 0 though as that means unlimited!) then you can just leave rclone running.

---

<div class="post-metadata">

**Author:** ![ydkmlt84](https://forum.rclone.org/letter_avatar_proxy/v4/letter/y/e79b87/32.png) [@ydkmlt84](https://forum.rclone.org/u/ydkmlt84)\
**Post date:** [January 10, 2018, 9:45am UTC](https://forum.rclone.org/t/nightly-copy-to-g-drive-ideas/4560/3 "2018-01-10T09:45:37Z")

</div>

I will have a look at bwlimit. Thank you very much!

---

<div class="post-metadata">

**Author:** ![ydkmlt84](https://forum.rclone.org/letter_avatar_proxy/v4/letter/y/e79b87/32.png) [@ydkmlt84](https://forum.rclone.org/u/ydkmlt84)\
**Post date:** [January 10, 2018, 7:41pm UTC](https://forum.rclone.org/t/nightly-copy-to-g-drive-ideas/4560/4 "2018-01-10T19:41:49Z")

</div>

bwlimit does seem to be exactly what I want. is there a way to put this into a rclone config file of sorts in order to impose those bwlimits at all times, for whenever a rclone command is sent? or it needs to be added to each command?

---

<div class="post-metadata">

**Author:** ![ncw](https://forum.rclone.org/user_avatar/forum.rclone.org/ncw/32/18_2.png) [@ncw](https://forum.rclone.org/u/ncw)\
**Post date:** [January 10, 2018, 8:12pm UTC](https://forum.rclone.org/t/nightly-copy-to-g-drive-ideas/4560/5 "2018-01-10T20:12:25Z")

</div>

> [@ydkmlt84](#):
>
> bwlimit does seem to be exactly what I want. is there a way to put this into a rclone config file of sorts in order to impose those bwlimits at all times, for whenever a rclone command is sent? or it needs to be added to each command?

You need to add it to each command, or you could set an environtment variable `export RCLONE_BWLIMIT=...`

---

<div class="post-metadata">

**Author:** ![ydkmlt84](https://forum.rclone.org/letter_avatar_proxy/v4/letter/y/e79b87/32.png) [@ydkmlt84](https://forum.rclone.org/u/ydkmlt84)\
**Post date:** [January 11, 2018, 1:54am UTC](https://forum.rclone.org/t/nightly-copy-to-g-drive-ideas/4560/6 "2018-01-11T01:54:09Z")

</div>

One last question and I think I’ll have what I need. I saw in a post, somewhere here, that there is no way to copy a folder directly? That it will only copy the contents? Is that true or am I missing something? Is there an option I’m not seeing?  
This is of course without specifying the folder on the destination. So “rclone copy /this/folder/ gdrive:” that won’t copy to gdrive /folder/contents right? It would be gdrive /source contents?

---

<div class="post-metadata">

**Author:** ![ncw](https://forum.rclone.org/user_avatar/forum.rclone.org/ncw/32/18_2.png) [@ncw](https://forum.rclone.org/u/ncw)\
**Post date:** [January 11, 2018, 10:02am UTC](https://forum.rclone.org/t/nightly-copy-to-g-drive-ideas/4560/7 "2018-01-11T10:02:06Z")

</div>

> [@ydkmlt84](#):
>
> One last question and I think I’ll have what I need. I saw in a post, somewhere here, that there is no way to copy a folder directly? That it will only copy the contents? Is that true or am I missing something? Is there an option I’m not seeing?
> 
> This is of course without specifying the folder on the destination. So “rclone copy /this/folder/ gdrive:” that won’t copy to gdrive /folder/contents right? It would be gdrive /source contents?

`rclone copy` works like rsync with a `/` on the end so it only copies the contents. This isn't a big deal in practice - if you want the actual folder then just name it on the command line.

So lets say /tmp/a has /tmp/a/file.txt in

```
rclone copy /tmp/a gdrive:

```

will copy file.txt to gdrive:file.txt

If you want to copy the directory just do

```
rclone copy /tmp/a gdrive:a

```

which will copy file.txt to gdrive:a/file.txt

This all makes more sense if you realise that copy is really just `rclone sync` under the hood with no deletes, and `sync` synchronises two directories which need naming on the command line.

---

<div class="post-metadata">

**Author:** ![system](https://forum.rclone.org/uploads/default/original/2X/3/39ad3235f6ffec76ccd0c81616bd55697b4c300d.png) [@system](https://forum.rclone.org/u/system)\
**Post date:** [March 4, 2020, 12:43am UTC](https://forum.rclone.org/t/nightly-copy-to-g-drive-ideas/4560/8 "2020-03-04T00:43:04Z")

</div>

Closed on March 4, 2020, 12:43am UTC


