Jump to content

Backup (cpmove) no google drive


msaulohenrique

Recommended Posts

Em 13/09/2016 em 16:10, Thiago Sabaia disse:

Então, para usar esse tutorial é necessário que o backup seja local para quando o backup encerrar o script pegar os arquivos e enviar para o Drive.

Você pode criar uma cron para limpar a pasta backup no dia seguinte por exemplo.

O cron do tutorial já prevê a deleção após mover para o drive.

 

#!/bin/sh

# upar arquivos de backup
drive upload --file /backup

# apagar arquivos da pasta
cd /backup
rm -dfr *


 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

Do you agree with our terms?