Skip to content
Snippets Groups Projects

presse_syncro.sh

  • Clone with SSH
  • Clone with HTTPS
  • Embed
  • Share
    The snippet can be accessed without any authentication.
    Authored by Dirk Sarpe
    Edited
    presse_syncro.sh 381 B
    #!/bin/bash
    
    ulsource='hier_den_eigenen_pfad_eintragen'
    uldestination='hier_den_anderen_eigenen_pfad_eintragen'
    idivsource='/var/www/html/prins/files/pm_export_uni'
    idivdestination='/var/www/html/prins/files/pm_import_uni'
    
    rsync --remove-source-files unitransfer@172.18.116.73:${idivsource}/*.zip $uldestination/
    rsync ${ulsource}/*.zip unitransfer@172.18.116.73:$idivdestination/
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Please register or to comment