video_editing:davinci_resolve_in_the_cloud

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revisionBoth sides next revision
video_editing:davinci_resolve_in_the_cloud [2021/03/20 10:59] davidvideo_editing:davinci_resolve_in_the_cloud [2021/03/21 14:34] david
Line 243: Line 243:
 ====== AWS DaVinci Resolve Workflow Reconnect ====== ====== AWS DaVinci Resolve Workflow Reconnect ======
  
-Upload new files:+===== Upload new files ===== 
 + 
 +Use a bat script to opy the files from local machine to s3. 
   * https://superuser.com/questions/444726/windows-how-to-add-batch-script-action-to-right-click-menu   * https://superuser.com/questions/444726/windows-how-to-add-batch-script-action-to-right-click-menu
  
Line 255: Line 258:
 SET drive_location="C:\Users\david\Pictures\Adventures In Cloud Computing" SET drive_location="C:\Users\david\Pictures\Adventures In Cloud Computing"
  
-SET project_list=yoga logo+SET project_list=dir_name_1 dir_name_2
  
 REM remove quotes REM remove quotes
Line 270: Line 273:
 echo Local project location: %local_project_location% echo Local project location: %local_project_location%
 echo    S3 project location: %s3_project_location% echo    S3 project location: %s3_project_location%
-  
  
 REM =========================================================================== REM ===========================================================================
Line 284: Line 286:
 </file> </file>
  
 +Remember before connecting:
   - Check new IP/DNS Name   - Check new IP/DNS Name
-  - Format/create hard disk: [[https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/diskpart-scripts-and-examples]] 
  
 +===== Create D drive =====
 +The second disk isn't kept, but can be recreated using a script
  
 +After connecting:
 +  - Format/create hard disk: [[https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/diskpart-scripts-and-examples]]
  
-<code+<file bash script_diskpart.txt
-aws s3 ls s3://drh-video1 +select disk 1 
-D: +clean 
-aws s3 cp s3://drh-video1 D:\ --recursive+create partition primary 
 +format quick 
 +assign letter=
 +</file>
  
-mkdir D:\projects +<file bash d_drive_format.bat> 
-mkdir D:\MEDIA +diskpart /s script_diskpart.txt 
- +pause 
-aws s3 cp s3://drh-video1/projects/LariceaBook D:\projects --recursive+</file>
  
-aws s3 sync s3://drh-video1/projects/LariceaBook D:\projects\LariceaBook +===== Copy files from projects in s3 =====
-</code>+
  
 <file bash copy_to_d.bat> <file bash copy_to_d.bat>
Line 312: Line 320:
 REM SET drive_location=C:\Users\david\projects REM SET drive_location=C:\Users\david\projects
    
-SET project_list=LariceaBook yoga VideoTest+SET project_list=OVFM logo
    
 REM =========================================================================== REM ===========================================================================
Line 323: Line 331:
 echo Local project location: %local_project_location% echo Local project location: %local_project_location%
 echo    S3 project location: %s3_project_location% echo    S3 project location: %s3_project_location%
- + 
 +REM =========================================================================== 
 +REM List available projects 
 +REM =========================================================================== 
 +echo =========================================================================== 
 +echo Available Projects 
 +echo =========================================================================== 
 +aws s3 ls %s3_project_location%/ 
 REM =========================================================================== REM ===========================================================================
 REM Create some local directories REM Create some local directories
Line 334: Line 350:
 REM Pull projects down REM Pull projects down
 REM =========================================================================== REM ===========================================================================
 +echo ===========================================================================
 +echo Downloading Configured Projects
 +echo ===========================================================================
    
 FOR %%i in (%project_list%) do ( FOR %%i in (%project_list%) do (
Line 342: Line 361:
 </file> </file>
  
-Backup +===== Copy files from projects in to s3 =====
-<code> +
-D: +
-aws s3 cp DATA s3://drh-video1/data --recursive +
-aws s3 cp VIDEO s3://drh-video1/LB_Video --recursive +
- +
-aws s3 cp D:\projects\LariceaBook s3://drh-video1/projects/LariceaBook --recursive +
- +
-aws s3 sync D:\projects\LariceaBook s3://drh-video1/projects/LariceaBook +
-</code> +
- +
-For recursive: https://ss64.com/nt/for_d.html +
 <file bash sync_to_s3.bat> <file bash sync_to_s3.bat>
 @ECHO OFF @ECHO OFF
Line 363: Line 370:
 SET aws_s3_bucket=drh-video1 SET aws_s3_bucket=drh-video1
 SET drive_location=D:\projects SET drive_location=D:\projects
 + 
 REM =========================================================================== REM ===========================================================================
 REM Set varialbes used in script REM Set varialbes used in script
 REM =========================================================================== REM ===========================================================================
- +  
-SET local_project_location=%drive_location%\projects+SET local_project_location=%drive_location%
 SET s3_project_location=s3://%aws_s3_bucket%/projects SET s3_project_location=s3://%aws_s3_bucket%/projects
 + 
 echo Local project location: %local_project_location% echo Local project location: %local_project_location%
 echo    S3 project location: %s3_project_location% echo    S3 project location: %s3_project_location%
 + 
 REM =========================================================================== REM ===========================================================================
 REM Loop directories in projects directory and sync to s3 REM Loop directories in projects directory and sync to s3
Line 384: Line 391:
 aws s3 sync !FullDirName! %s3_project_location%/!CurrDirName! aws s3 sync !FullDirName! %s3_project_location%/!CurrDirName!
 ) )
 + 
 pause pause
 </file> </file>
  • video_editing/davinci_resolve_in_the_cloud.txt
  • Last modified: 2021/11/22 09:55
  • by david