Skip to content

Commit b5ebd9c

Browse files
committed
v1.0.0
1 parent ea78b9d commit b5ebd9c

16 files changed

+576
-429
lines changed

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
*.json
2-
*.txt
3-
dev
2+
dev
3+
__pycache__

README.md

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Reddit Backup Restore
22

3-
Script to backup and restore your joined subreddits, multireddits, followed users, saved posts, hidden posts, upvoted posts and downvoted posts.
3+
Script to backup and restore your joined subreddits, multireddits, followed users, saved posts, saved comments, hidden posts, upvoted posts and downvoted posts.
44

55
## Why, I made this?
66

@@ -10,11 +10,11 @@ Reddit shadow banned my secondary account without specifying any reasons. Theref
1010

1111
## Setup
1212

13-
1. [Download this repo](https://github.com/Tetrax-10/reddit-backup-restore/archive/refs/heads/main.zip) or clone this repository
13+
1. Make sure you have [python](https://www.python.org) installed.
1414

15-
2. Make sure you have [python](https://www.python.org) installed.
15+
2. Download the [latest release](https://github.com/Tetrax-10/reddit-backup-restore/releases/latest)
1616

17-
3. Open a terminal inside the `reddit-backup-restore` folder and run: `pip install praw`.
17+
3. Open a terminal inside the `reddit-backup-restore` folder and run: `pip install -r requirements.txt`.
1818

1919
4. Replace the placeholders inside `praw.ini` file.
2020

@@ -28,43 +28,45 @@ Reddit shadow banned my secondary account without specifying any reasons. Theref
2828

2929
### 1. Run this to backup your main account
3030

31-
This will create a `backup.json` where all your joined subreddits, multireddits, followed users, saved posts, hidden posts, upvoted posts and downvoted posts will be stored.
31+
This will create a `backup.json` where all `account_1_username`'s user data will be stored.
3232

3333
```sh
34-
python backup.py account_1_username
34+
python reddit.py backup account_1_username
3535
```
3636

3737
![backup](https://raw.githubusercontent.com/Tetrax-10/reddit-backup-restore/main/assets/backup.png)
3838

39+
_Note:_ **Followed multireddits** and **multireddit favorited data** will not be backed due to reddit's API limitation.
40+
3941
</br>
4042

4143
### 2. **Run this to restore the backup to your secondary account**
4244

43-
This will restore all your joined subreddits, multireddits, followed users saved posts and hidden posts from `backup.json`.
45+
This will restore all `account_1_username`'s user data which was backed up to `backup.json` to `account_2_username`.
4446

4547
```sh
46-
python restore.py account_2_username
48+
python reddit.py restore account_2_username
4749
```
4850

4951
![restore](https://raw.githubusercontent.com/Tetrax-10/reddit-backup-restore/main/assets/restore.png)
5052

51-
**_Note:_** By default, **upvoted and downvoted posts** will not be restored. Modifying upvotes and downvotes in bulk may trigger _Reddit's automated vote manipulation detector_, which may lead to **permanent ban**. **_Use at your own risk_**. You can modify the config section inside `restore.py` to enable this feature.
53+
_Note:_ By default, **upvoted and downvoted posts will not be restored**. Modifying upvotes and downvotes in bulk may trigger _Reddit's automated vote manipulation detector_, which may lead to **permanent ban**. **_Use at your own risk_**. You can modify the `config.ini` to enable this feature.
5254

5355
</br>
5456

55-
### 3. Extra feature (clear account's user data):
57+
### 3. Extra feature (clear an account's user data):
5658

57-
If you want to unsubscribe all joined subreddits, unfollow all users, delete all multireddits, saved posts and hidden posts, run:
59+
If you want to unsubscribe all joined subreddits, unfollow all users, delete all multireddits, saved posts, saved comments and hidden posts, run:
5860

5961
```sh
60-
python clear.py account_username
62+
python reddit.py clear account_username
6163
```
6264

6365
![clear](https://raw.githubusercontent.com/Tetrax-10/reddit-backup-restore/main/assets/clear.png)
6466

65-
again, upvoted posts and downvoted posts will not be cleared by default. You can modify the config section inside `clear.py` to enable this feature.
67+
Again, upvoted posts and downvoted posts will not be cleared by default. You can modify the `config.ini` to enable this feature.
6668

67-
You can also delete all your posts and comments by modifying the config section inside `clear.py`. By default, **your posts and comments will not be deleted**.
69+
You can also delete all your posts and comments by modifying the `config.ini`. By default, **your posts and comments will not be deleted**.
6870

6971
</br>
7072

assets/backup.png

95.4 KB
Loading

assets/clear.png

101 KB
Loading

assets/restore.png

106 KB
Loading

backup.py

Lines changed: 0 additions & 155 deletions
This file was deleted.

clear.py

Lines changed: 0 additions & 131 deletions
This file was deleted.

0 commit comments

Comments
 (0)