mirror of
https://github.com/rclone/rclone.git
synced 2025-02-08 06:29:22 +01:00
press -> compress
This commit is contained in:
parent
954a23ed5d
commit
f3779ae427
@ -9,6 +9,7 @@ import (
|
|||||||
_ "github.com/rclone/rclone/backend/box"
|
_ "github.com/rclone/rclone/backend/box"
|
||||||
_ "github.com/rclone/rclone/backend/cache"
|
_ "github.com/rclone/rclone/backend/cache"
|
||||||
_ "github.com/rclone/rclone/backend/chunker"
|
_ "github.com/rclone/rclone/backend/chunker"
|
||||||
|
_ "github.com/rclone/rclone/backend/compress"
|
||||||
_ "github.com/rclone/rclone/backend/crypt"
|
_ "github.com/rclone/rclone/backend/crypt"
|
||||||
_ "github.com/rclone/rclone/backend/drive"
|
_ "github.com/rclone/rclone/backend/drive"
|
||||||
_ "github.com/rclone/rclone/backend/dropbox"
|
_ "github.com/rclone/rclone/backend/dropbox"
|
||||||
@ -28,7 +29,6 @@ import (
|
|||||||
_ "github.com/rclone/rclone/backend/opendrive"
|
_ "github.com/rclone/rclone/backend/opendrive"
|
||||||
_ "github.com/rclone/rclone/backend/pcloud"
|
_ "github.com/rclone/rclone/backend/pcloud"
|
||||||
_ "github.com/rclone/rclone/backend/premiumizeme"
|
_ "github.com/rclone/rclone/backend/premiumizeme"
|
||||||
_ "github.com/rclone/rclone/backend/press"
|
|
||||||
_ "github.com/rclone/rclone/backend/putio"
|
_ "github.com/rclone/rclone/backend/putio"
|
||||||
_ "github.com/rclone/rclone/backend/qingstor"
|
_ "github.com/rclone/rclone/backend/qingstor"
|
||||||
_ "github.com/rclone/rclone/backend/s3"
|
_ "github.com/rclone/rclone/backend/s3"
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
// Package press provides wrappers for Fs and Object which implement compression.
|
// Package compress provides wrappers for Fs and Object which implement compression.
|
||||||
package press
|
package compress
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bufio"
|
"bufio"
|
||||||
@ -61,7 +61,7 @@ func init() {
|
|||||||
|
|
||||||
// Register our remote
|
// Register our remote
|
||||||
fs.Register(&fs.RegInfo{
|
fs.Register(&fs.RegInfo{
|
||||||
Name: "press",
|
Name: "compress",
|
||||||
Description: "Compress a remote",
|
Description: "Compress a remote",
|
||||||
NewFs: NewFs,
|
NewFs: NewFs,
|
||||||
Options: []fs.Option{{
|
Options: []fs.Option{{
|
@ -1,5 +1,5 @@
|
|||||||
// Test Crypt filesystem interface
|
// Test Crypt filesystem interface
|
||||||
package press
|
package compress
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"os"
|
"os"
|
||||||
@ -41,8 +41,8 @@ func TestRemoteGzip(t *testing.T) {
|
|||||||
if *fstest.RemoteName != "" {
|
if *fstest.RemoteName != "" {
|
||||||
t.Skip("Skipping as -remote set")
|
t.Skip("Skipping as -remote set")
|
||||||
}
|
}
|
||||||
tempdir := filepath.Join(os.TempDir(), "rclone-press-test-gzip")
|
tempdir := filepath.Join(os.TempDir(), "rclone-compress-test-gzip")
|
||||||
name := "TestPressGzip"
|
name := "TestCompressGzip"
|
||||||
fstests.Run(t, &fstests.Opt{
|
fstests.Run(t, &fstests.Opt{
|
||||||
RemoteName: name + ":",
|
RemoteName: name + ":",
|
||||||
NilObject: (*Object)(nil),
|
NilObject: (*Object)(nil),
|
||||||
@ -60,7 +60,7 @@ func TestRemoteGzip(t *testing.T) {
|
|||||||
"SetTier",
|
"SetTier",
|
||||||
},
|
},
|
||||||
ExtraConfig: []fstests.ExtraConfigItem{
|
ExtraConfig: []fstests.ExtraConfigItem{
|
||||||
{Name: name, Key: "type", Value: "press"},
|
{Name: name, Key: "type", Value: "compress"},
|
||||||
{Name: name, Key: "remote", Value: tempdir},
|
{Name: name, Key: "remote", Value: tempdir},
|
||||||
{Name: name, Key: "compression_mode", Value: "gzip"},
|
{Name: name, Key: "compression_mode", Value: "gzip"},
|
||||||
},
|
},
|
1
backend/press/.gitignore
vendored
1
backend/press/.gitignore
vendored
@ -1 +0,0 @@
|
|||||||
test
|
|
@ -1,13 +1,13 @@
|
|||||||
---
|
---
|
||||||
title: "Press"
|
title: "Compress"
|
||||||
description: "Compression Remote"
|
description: "Compression Remote"
|
||||||
date: "2020-09-14"
|
date: "2020-09-14"
|
||||||
---
|
---
|
||||||
|
|
||||||
Press (Experimental)
|
Compress (Experimental)
|
||||||
-----------------------------------------
|
-----------------------------------------
|
||||||
|
|
||||||
The `press` remote adds compression to another remote. It is best used with remotes containing
|
The `Compress` remote adds compression to another remote. It is best used with remotes containing
|
||||||
many large compressible files.
|
many large compressible files.
|
||||||
|
|
||||||
Please read the [warnings](#warnings) before using this remote.
|
Please read the [warnings](#warnings) before using this remote.
|
||||||
@ -30,13 +30,13 @@ c) Copy remote
|
|||||||
s) Set configuration password
|
s) Set configuration password
|
||||||
q) Quit config
|
q) Quit config
|
||||||
e/n/d/r/c/s/q> n
|
e/n/d/r/c/s/q> n
|
||||||
name> press
|
name> compress
|
||||||
...
|
...
|
||||||
8 / Compress a remote
|
8 / Compress a remote
|
||||||
\ "press"
|
\ "compress"
|
||||||
...
|
...
|
||||||
Storage> press
|
Storage> compress
|
||||||
** See help for press backend at: https://rclone.org/press/ **
|
** See help for compress backend at: https://rclone.org/compress/ **
|
||||||
|
|
||||||
Remote to compress.
|
Remote to compress.
|
||||||
Enter a string value. Press Enter for the default ("").
|
Enter a string value. Press Enter for the default ("").
|
||||||
@ -53,8 +53,8 @@ n) No (default)
|
|||||||
y/n> n
|
y/n> n
|
||||||
Remote config
|
Remote config
|
||||||
--------------------
|
--------------------
|
||||||
[press]
|
[compress]
|
||||||
type = press
|
type = compress
|
||||||
remote = remote_to_press:subdir
|
remote = remote_to_press:subdir
|
||||||
compression_mode = gzip
|
compression_mode = gzip
|
||||||
--------------------
|
--------------------
|
||||||
@ -87,26 +87,26 @@ This remote is currently **experimental**. Things may break and data may be lost
|
|||||||
at your own risk. Please understand the risks associated with using experimental code and don't use this remote in
|
at your own risk. Please understand the risks associated with using experimental code and don't use this remote in
|
||||||
critical applications.
|
critical applications.
|
||||||
|
|
||||||
{{< rem autogenerated options start" - DO NOT EDIT - instead edit fs.RegInfo in backend/press/press.go then run make backenddocs" >}}
|
{{< rem autogenerated options start" - DO NOT EDIT - instead edit fs.RegInfo in backend/compress/compress.go then run make backenddocs" >}}
|
||||||
### Standard Options
|
### Standard Options
|
||||||
|
|
||||||
Here are the standard options specific to press (Compress a remote).
|
Here are the standard options specific to compress (Compress a remote).
|
||||||
|
|
||||||
#### --press-remote
|
#### --compress-remote
|
||||||
|
|
||||||
Remote to compress.
|
Remote to compress.
|
||||||
|
|
||||||
- Config: remote
|
- Config: remote
|
||||||
- Env Var: RCLONE_PRESS_REMOTE
|
- Env Var: RCLONE_COMPRESS_REMOTE
|
||||||
- Type: string
|
- Type: string
|
||||||
- Default: ""
|
- Default: ""
|
||||||
|
|
||||||
#### --press-mode
|
#### --compress-mode
|
||||||
|
|
||||||
Compression mode.
|
Compression mode.
|
||||||
|
|
||||||
- Config: mode
|
- Config: mode
|
||||||
- Env Var: RCLONE_PRESS_MODE
|
- Env Var: RCLONE_COMPRESS_MODE
|
||||||
- Type: string
|
- Type: string
|
||||||
- Default: "gzip"
|
- Default: "gzip"
|
||||||
- Examples:
|
- Examples:
|
||||||
@ -115,9 +115,9 @@ Compression mode.
|
|||||||
|
|
||||||
### Advanced Options
|
### Advanced Options
|
||||||
|
|
||||||
Here are the advanced options specific to press (Compress a remote).
|
Here are the advanced options specific to compress (Compress a remote).
|
||||||
|
|
||||||
#### --press-level
|
#### --compress-level
|
||||||
|
|
||||||
GZIP compression level (-2 to 9).
|
GZIP compression level (-2 to 9).
|
||||||
|
|
||||||
@ -130,7 +130,7 @@ GZIP compression level (-2 to 9).
|
|||||||
Level 0 turns off compression.
|
Level 0 turns off compression.
|
||||||
|
|
||||||
- Config: level
|
- Config: level
|
||||||
- Env Var: RCLONE_PRESS_LEVEL
|
- Env Var: RCLONE_COMPRESS_LEVEL
|
||||||
- Type: int
|
- Type: int
|
||||||
- Default: -1
|
- Default: -1
|
||||||
|
|
Loading…
Reference in New Issue
Block a user