Skip to content

Commit

Permalink
Merge pull request #425 from aerth/patch-1
Browse files Browse the repository at this point in the history
README: awesome one-line backup tar.gz on the fly
  • Loading branch information
Emmanuel Odeke committed Oct 10, 2015
2 parents a12df0f + c8a4e5a commit 2a320fc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,12 @@ drive also supports pushing content piped from stdin which can be accomplished b
$ drive push -piped path
```
Here is an example using drive to backup the current working directory. It pushes a tar.gz archive created on the fly. No archive file is made on the machine running the command, so it doesn't waste disk space.
```shell
$ tar czf - . | drive push -piped backup-$(date +"%m-%d-%Y-"%T"").tar.gz
```
+ Note:
* In response to [#107](https://github.com/odeke-em/drive/issues/107) and numerous other issues related to confusion about clashing paths, drive can now auto-rename clashing files. Use flag `--fix-clashes` during a `pull` or `push`, and drive will try to rename clashing files by adding a unique suffix at the end of the name, but right before the extension of a file (if the extension exists). If you haven't passed in the above `--fix-clashes` flag, drive will abort on trying to deal with clashing names. If you'd like to turn off this safety, pass in flag `--ignore-name-clashes`
* In relation to [#57](https://github.com/odeke-em/drive/issues/57) and [@rakyll's #49](https://github.com/rakyll/drive/issues/49).
Expand Down

0 comments on commit 2a320fc

Please sign in to comment.