-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
6 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,13 +4,14 @@ | |
[![Build & Publish NPM Package](https://github.com/WeeJeWel/node-icloud-backup/actions/workflows/npm-publish.yml/badge.svg)](https://github.com/WeeJeWel/node-icloud-backup/actions/workflows/npm-publish.yml) | ||
[![Build & Publish Docker Image](https://github.com/WeeJeWel/node-icloud-backup/actions/workflows/ghcr-publish.yml/badge.svg)](https://github.com/WeeJeWel/node-icloud-backup/actions/workflows/ghcr-publish.yml) | ||
|
||
This module automatically downloads your iCloud Drive to the filesystem. | ||
This module automatically downloads your iCloud Drive to the local filesystem. | ||
|
||
This tool will output the following directory structure: | ||
|
||
``` | ||
. | ||
├── Drive | ||
└── Drive | ||
└── <...> | ||
``` | ||
|
||
## Why? | ||
|
@@ -32,14 +33,16 @@ $ npx -y icloud-backup \ | |
--filepath "~/Backups/iCloud/" | ||
``` | ||
|
||
> The first time you will need to enter your 2FA code manually. | ||
> Hint: You can schedule this in a cronjob for automated backups. | ||
#### Docker | ||
|
||
If you prefer Docker, this is an example how to run: | ||
|
||
```bash | ||
$ docker run \ | ||
$ docker run -it \ | ||
--env ICLOUD_BACKUP_USERNAME="[email protected]" \ | ||
--env ICLOUD_BACKUP_PASSWORD="abcd efgh ijkl mnop" \ | ||
--env ICLOUD_BACKUP_FILEPATH="/backups" \ | ||
|