File tree Expand file tree Collapse file tree 2 files changed +18
-1
lines changed
deploy/postgres/maintenance
digest/management/commands Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change 2
2
3
3
BACKUP_DIR_PATH=' /home/pythondigest/pythondigest/deploy/zips'
4
4
5
+ # create dataset.zip
6
+ cd /home/pythondigest/pythondigest/deploy/dataset
7
+ sudo rm -f ./*
8
+ docker exec -it pydigest_django python manage.py create_dataset 30 80
9
+ cd /home/pythondigest/pythondigest/deploy/
10
+ rm -f dataset.zip
11
+ zip -r dataset.zip dataset
12
+ mkdir -p zips
13
+ mv dataset.zip zips
14
+
15
+ # create pages.zip
16
+ cd /home/pythondigest/pythondigest/deploy/
17
+ rm -f pages.zip
18
+ zip -r pages.zip pages
19
+ mkdir -p zips
20
+ mv pages.zip zips
21
+
5
22
# clone to yandex disk
6
23
echo " Run rclone"
7
24
rclone sync --ignore-existing --create-empty-src-dirs $BACKUP_DIR_PATH yandex-pydigest:backups/pythondigest/zips/
Original file line number Diff line number Diff line change 7
7
8
8
9
9
class Command (BaseCommand ):
10
- help = "Create dataset "
10
+ help = "Create report "
11
11
12
12
def add_arguments (self , parser ):
13
13
parser .add_argument ("out_path" , type = str )
You can’t perform that action at this time.
0 commit comments