X-Git-Url: https://code.communitydata.science/taguette_google_sheet_integration.git/blobdiff_plain/c085be83a7b6465c06befb981fafc82ea7954f36..HEAD:/README.md diff --git a/README.md b/README.md index 4974249..0627be0 100644 --- a/README.md +++ b/README.md @@ -10,10 +10,11 @@ In order to not commit your changes into git, you can run this command: git update-index --assume-unchanged .taguette_gdocs ``` -I also create a directory called `taguette_backups` like: +I also create a directory called `taguette_backups` and one called `exported_tags` like: ``` -mkdir db_backups +mkdir taguette_backups +mkdir exported_tags ``` ## Step 1: Backing things up @@ -28,7 +29,7 @@ cp "taguette_backups/$BACKUP_FILE" ./taguette-working.sqlite3 ``` The first line shuts down Taguette. The second line just creates the backup -file name. The third and fourt lines will create a new backup file and copy the +file name. The third and fourth lines will create a new backup file and copy the backup file into the `./taguette-working.sqlite3`. ### Step 2a: Import from Google Sheets into the database @@ -44,6 +45,7 @@ like: ``` sudo cp ./taguette-working.sqlite3 /var/lib/taguette/taguette.sqlite3 +sudo chown taguette:taguette /var/lib/taguette/taguette.sqlite3 ``` ### Step 2b: Exporting from the database @@ -51,7 +53,7 @@ sudo cp ./taguette-working.sqlite3 /var/lib/taguette/taguette.sqlite3 Exporting tags should be as easy as: ``` -python3 taguette-export_tags_to_csv.py > exported_tags.tsv +python3 taguette-export_tags_to_csv.py ``` This will create a new file called `exported_tags.tsv` which you can manually