publish.py 455 B

1234567891011121314151617
  1. #!/usr/bin/env python
  2. from datetime import datetime as dt
  3. from subprocess import run
  4. dir_name = f'seeding_studies_{dt.strftime(dt.now(), "%Y_%m_%d_%H")}'
  5. remote = 'caleb@fangmeier.tech:/var/www/eg/'
  6. run(('rm', '-rf', dir_name))
  7. run(('mkdir', '-p', dir_name+'/output'))
  8. run(('cp', '-r', '../hists', dir_name))
  9. run(('cp', '-r', 'output', dir_name))
  10. run(('scp', '-r', dir_name, remote))
  11. print(f'Data available at https://eg.fangmeier.tech/{dir_name}/')