Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
ESUP-Pod API sample
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MARCHAL Julien
ESUP-Pod API sample
Commits
5cc56408
Commit
5cc56408
authored
2 weeks ago
by
MARCHAL Julien
Browse files
Options
Downloads
Patches
Plain Diff
Add migration readme
parent
4e0fa360
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
migration/README
+26
-0
26 additions, 0 deletions
migration/README
with
26 additions
and
0 deletions
migration/README
0 → 100644
+
26
−
0
View file @
5cc56408
#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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment