1

I use my raspberry pi to collect pictures, movies via motion and the raspberry camera (Home surveillance). When the pictures are made, I want to move them to some cloud solution so that they are offsite, off the deveice and I can look at them from everywhere at anytime when needed. And thus keeping as little as possible of the images (data) on the raspberry pi.

I found a few sites on the PI and Cloud:

But that are all sync solutions, and as far as I could find there was not the mention of a move command. Mapping a remote folder alone is not enough because what then happens when for an hour there is no internet on the PI? Perhaps a local script that moves stuff to a mapped folder? I don't know..

The question(s)

  • Is moving files without syncing via a deamon on the Pi to the cloud possible?
  • and if yes, for what option and solution should I search? Because until now my google queries do not find what I need.
  • 1
    In the old days, before we called off-site storage "the cloud" we used such tools as ftp. – joan Mar 28 '15 at 12:53
  • in the current days we outsource the thinking about storage space, uptime and gallery/album/user_access integration :) – Edzob Mar 29 '15 at 9:54
  • @Edzob speak for yourself :) – jDo Mar 19 '16 at 15:45
1

I think that you have to map/mount the cloud drive. If it supports webdav or other common file transfer protocols you could do that. Then setup a mv cron job. http://www.linuxquestions.org/questions/linux-software-2/using-crontab-to-move-files-636271/

  • I found some tutorials on how to do this (dav2fs + rsync + list of cloud providers that support webdav) .. what is best practice? 1. To add the links in the comments or 2) to write an answers with the links and steps? – Edzob Mar 29 '15 at 9:27
0

Moving a file across filesystems requires two things:

  • The file be copied from the source to the destination.
  • The source file is then unlinked, meaning, removed from the filesystem indexing. On normal filesystems the data isn't actually erased, which is why if you want to make sure it is really gone you have to shred or zero the free space on the drive.

That last step is trivial. If those sync systems provide a "no delete" option on the destination, so you can copy all the files and then delete them yourself and not worry about them being erased on the destination next time you sync, there's not a problem.

0

Take a look at Amazon S3 Tools - they are command line AND S3 protocol is widely supported

-1

rclone is reported to do exactly what you want. It has ARM support and it will do a copy or copy of new/changed files and a one-way sync. Works with multiple cloud vendors as well as local file systems. http://rclone.org/

  • Unfortunately, this answer does not answer the question - the OP wants to move, not copy (or sync), files. The link, that you provide, does not mention moving files at all. – Greenonline Mar 19 '16 at 0:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.