Adding "soc_delete" option to ams-frames-backup

1. Changes done by Oleg

[kowaraj@KowarakoT-2: ~/src/AMS/ams-frames-backup ] git pull
Updating 3c65093..299eb86
Fast-forward
frames_backup/admin.py | 2 +-
scripts/lib/Backup.py | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++
scripts/lib/Script.py | 2 +-
3 files changed, 52 insertions(+), 2 deletions(-)

2. Now I just need to check if the space on the disk if low and run the script

[kowaraj@KowarakoT-2: ~/src/AMS/ams-frames-backup ] e ./scripts/lib/Backup.py

2.1 git: Commit, push

3. Copy the script to production

[kowaraj@macabre: ~/src/AMS/ams-frames-backup ] scp -v ./scripts/lib/Backup.py root@ams-backupNOSPAMPLEASE.cern.ch:/dat0/frames_backup/current/scripts/lib/Backup.py

4. Add to acrontab

[ams@ams-backup apashnin]$ acrontab -l | grep backup
*/10 * * * * ams-backup.cern.ch /afs/cern.ch/ams/local/bin/backup_frames_10m.acron
#9 2 * * * ams-backup.cern.ch /afs/cern.ch/ams/local/bin/backup_frames_1d.acron
*/10 * * * * ams-backup.cern.ch /afs/cern.ch/ams/local/bin/playback_10m.acron
#19 * * * * ams-backup.cern.ch /afs/cern.ch/ams/local/bin/lebedev_1h.acron
[ams@ams-backup apashnin]$ vim /afs/cern.ch/ams/local/bin/backup_frames_10m.acron

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r3 - 2017-06-19 - AndreyPashnin
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Main All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback