Skip to content

Commit 2a320fc

Browse files
author
Emmanuel Odeke
committed
Merge pull request #425 from aerth/patch-1
README: awesome one-line backup tar.gz on the fly
2 parents a12df0f + c8a4e5a commit 2a320fc

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,12 @@ drive also supports pushing content piped from stdin which can be accomplished b
330330
$ drive push -piped path
331331
```
332332
333+
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.
334+
335+
```shell
336+
$ tar czf - . | drive push -piped backup-$(date +"%m-%d-%Y-"%T"").tar.gz
337+
```
338+
333339
+ Note:
334340
* 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`
335341
* In relation to [#57](https://github.com/odeke-em/drive/issues/57) and [@rakyll's #49](https://github.com/rakyll/drive/issues/49).

0 commit comments

Comments
 (0)