Skip to content
Snippets Groups Projects
Commit 5cc56408 authored by MARCHAL Julien's avatar MARCHAL Julien
Browse files

Add migration readme

parent 4e0fa360
No related branches found
No related tags found
No related merge requests found
#Make list videos and files from database
cd /pod/src && python manage.py shell < /pod/REPRISE/esup-pod-api-sample/migration/list-files-url-from-db.py > /pod/REPRISE/esup-pod-api-sample/migration/media_files_list_db.txt
cd /pod/src && python manage.py shell < /pod/REPRISE/esup-pod-api-sample/migration/list-videos-url-from-db.py > /pod/REPRISE/esup-pod-api-sample/migration/media_videos_list_db.txt
#Make list videos and files from filesystem
python /pod/REPRISE/esup-pod-api-sample/migration/list-files-url-from-fs.py > /pod/REPRISE/esup-pod-api-sample/migration/media_files_list_fs.txt
python /pod/REPRISE/esup-pod-api-sample/migration/list-videos-url-from-fs.py > /pod/REPRISE/esup-pod-api-sample/migration/media_videos_list_fs.txt
#Download videos and files from url
python /pod/REPRISE/esup-pod-api-sample/migration/download-videos-from-url.py
python /pod/REPRISE/esup-pod-api-sample/migration/download-files-from-url.py
#Test after download if videos and files are all present on filesystem
python /pod/REPRISE/esup-pod-api-sample/migration/test-videos-after-download.py
python /pod/REPRISE/esup-pod-api-sample/migration/test-files-after-download.py
#some diff
cat /pod/REPRISE/esup-pod-api-sample/migration/media_videos_list_db.txt |sort -u > /pod/REPRISE/esup-pod-api-sample/migration/media_videos_list_db_sort.txt
cat /pod/REPRISE/esup-pod-api-sample/migration/media_videos_list_fs.txt |sort -u > /pod/REPRISE/esup-pod-api-sample/migration/media_videos_list_fs_sort.txt
wc -l /pod/REPRISE/esup-pod-api-sample/migration/media_videos_list_db.txt
wc -l /pod/REPRISE/esup-pod-api-sample/migration/media_videos_list_db_sort.txt
wc -l /pod/REPRISE/esup-pod-api-sample/migration/media_videos_list_fs.txt
wc -l /pod/REPRISE/esup-pod-api-sample/migration/media_videos_list_fs_sort.txt
diff -urb /pod/REPRISE/esup-pod-api-sample/migration/media_videos_list_db_sort.txt /pod/REPRISE/esup-pod-api-sample/migration/media_videos_list_fs_sort.txt
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment