Commit 8b135fd 1 parent d8e0e9e commit 8b135fd Copy full SHA for 8b135fd
File tree 5 files changed +51
-6
lines changed
5 files changed +51
-6
lines changed Original file line number Diff line number Diff line change @@ -27,8 +27,7 @@ There are two types of backups:
27
27
28
28
# What You Can Do with a Backup
29
29
30
- * Migrate - use the local copy to populate emails on another account. This is a once-only action that deletes any existing emails on the destination account.
31
- * Mirror - make a destination account match the local copy. This action can be repeated.
30
+ * Copy - copy messages from one account to another, tracking copies in order to avoid duplicates.
32
31
* Restore - push the local copy back to the original account.
33
32
34
33
See below for a [ full list of commands] ( #commands ) .
@@ -145,13 +144,12 @@ and exported via [`utils export-to-thunderbird`](/docs/commands/utils-export-to-
145
144
# Commands
146
145
147
146
* [ ` backup ` ] ( /docs/commands/backup.md )
147
+ * [ ` copy ` ] ( /docs/commands/copy.md )
148
148
* [ ` local accounts ` ] ( /docs/commands/local-accounts.md )
149
149
* [ ` local check ` ] ( /docs/commands/local-check.md )
150
150
* [ ` local folders ` ] ( /docs/commands/local-folders.md )
151
151
* [ ` local list ` ] ( /docs/commands/local-list.md )
152
152
* [ ` local show ` ] ( /docs/commands/local-show.md )
153
- * [ ` migrate ` ] ( /docs/commands/migrate.md )
154
- * [ ` mirror ` ] ( /docs/commands/mirror.md )
155
153
* [ ` remote folders ` ] ( /docs/commands/remote-folders.md )
156
154
* [ ` restore ` ] ( /docs/commands/restore.md )
157
155
* [ ` setup ` ] ( /docs/commands/setup.md )
Original file line number Diff line number Diff line change
1
+ <!--
2
+ # @title command: 'copy'
3
+ -->
4
+ # Copy
5
+
6
+ ``` sh
7
+ imap-backup copy SOURCE_EMAIL DESTINATION_EMAIL
8
+ ```
9
+
10
+ This command makes a local copy of the emails in the source account
11
+ and then copies them to the destination account.
12
+
13
+ Exactly which folders are backed up (and copied) depends on how the account is set up.
14
+
15
+ Specifically, the ` folder inclusion mode (whitelist/blacklist) ` and
16
+ ` folders to include/exclude ` list.
17
+
18
+ Note that, any messages on the destination account that is not on the source account
19
+ are left unchanged.
20
+
21
+ # Options
22
+
23
+ * ` --source-delimiter ` - the separator between the elements of folders names
24
+ on the source server, defaults to ` / ` ,
25
+ * ` --source-prefix ` - optionally, a prefix element to remove from the name
26
+ of source folders,
27
+ * ` --destination-delimiter ` - the separator between the elements of folder
28
+ names on the destination server, defaults to ` / ` ,
29
+ * ` --destination-prefix ` - optionally, a prefix element to add before names
30
+ on the destination server,
31
+ * ` --automatic-namespaces ` - works out the 4 parameters above by querying
32
+ the source and destination IMAP servers.
33
+
34
+ # Delimiters and Prefixes
35
+
36
+ For details of the delimiter and prefix options,
37
+ see [ the note about delimiters and prefixes] ( ../delimiters-and-prefixes.md ) .
Original file line number Diff line number Diff line change 7
7
imap-backup migrate SOURCE_EMAIL DESTINATION_EMAIL [OPTIONS]
8
8
```
9
9
10
+ This command is deprecated. Use [ copy] ( ./copy.md ) .
11
+
10
12
This command copies backed up emails for one account (the "source")
11
13
to another account (the "destination").
12
14
Original file line number Diff line number Diff line change 7
7
imap-backup mirror SOURCE_EMAIL DESTINATION_EMAIL
8
8
```
9
9
10
+ This command is deprecated and will be removed in a future version. Use [ copy] ( ./copy.md ) .
11
+
10
12
This command makes a local copy of the emails in the source account
11
13
and then copies them to the destination account.
12
14
Original file line number Diff line number Diff line change @@ -162,9 +162,12 @@ def copy(source_email, destination_email)
162
162
163
163
desc (
164
164
"migrate SOURCE_EMAIL DESTINATION_EMAIL [OPTIONS]" ,
165
- "Uploads backed-up emails from account SOURCE_EMAIL to account DESTINATION_EMAIL"
165
+ "(Deprecated) Uploads backed-up emails from account SOURCE_EMAIL to account DESTINATION_EMAIL"
166
166
)
167
167
long_desc <<~DESC
168
+ This command is deprecated and will be removed in a future version.
169
+ Use 'copy' instead.
170
+
168
171
All emails which have been backed up for the "source account" (SOURCE_EMAIL) are
169
172
uploaded to the "destination account" (DESTINATION_EMAIL).
170
173
@@ -221,9 +224,12 @@ def migrate(source_email, destination_email)
221
224
222
225
desc (
223
226
"mirror SOURCE_EMAIL DESTINATION_EMAIL [OPTIONS]" ,
224
- "Keeps the DESTINATION_EMAIL account aligned with the SOURCE_EMAIL account"
227
+ "(Deprecated) Keeps the DESTINATION_EMAIL account aligned with the SOURCE_EMAIL account"
225
228
)
226
229
long_desc <<~DESC
230
+ This command is deprecated and will be removed in a future version.
231
+ Use 'copy' instead.
232
+
227
233
This command updates the DESTINATION_EMAIL account's folders to have the same contents
228
234
as those on the SOURCE_EMAIL account.
229
235
You can’t perform that action at this time.
0 commit comments