Closed AbubakrSamsodien closed 7 years ago
Hello,
you can set how many/how long snapshots should be saved.
So if you set the value to one, after the new snapshot has been saved, the old one will be canceled. Is this what you are looking for?
Regards,
Ivan
Von: AbubakrSamsodien [mailto:notifications@github.com] Gesendet: Donnerstag, 16. März 2017 09:51 An: NAUbackup/VmBackup Cc: Subscribed Betreff: [NAUbackup/VmBackup] Possible to overwrite Vm Snapshots? (#38)
Im new to scripting, looking for a way to overwrite the exported snapshot instead of it creating /snapshot/BACKUP/(VM)/backup(date), i just want to remove (date) so that it doesnt make multiple VMs.
It has to overwrite the existing VM snapshot.
Everyone welcome to ask me questions if things are unclear.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/NAUbackup/VmBackup/issues/38 , or mute the thread https://github.com/notifications/unsubscribe-auth/ANCGDksHJtOnfDndLc3nUrBDVni8NU_tks5rmPfvgaJpZM4Me_ym . https://github.com/notifications/beacon/ANCGDrPlahf7r0nximQOUGhKBmgSO2kYks5rmPfvgaJpZM4Me_ym.gif
Thanks Do you know which line in the script to configure?
Because ive tried changing: 710 def get_dir_to_remove(path, numbackups): 711 # Find oldest backup and select for deletion 712 dirs = os.listdir(path) 713 dirs.sort() 714 if (len(dirs) > numbackups and len(dirs) > 1): 715 return dirs[1] 716 else: 717 return False
but still no luck, it still creates a new snapshot without removing the old 1
Hey
I trust you are well
If you have time, what line in the script do i have to config to overwrite my old backups?
kind regards
From: Ivan De Masi notifications@github.com Sent: 16 March 2017 10:09 AM To: NAUbackup/VmBackup Cc: AbubakrSamsodien; Author Subject: Re: [NAUbackup/VmBackup] Possible to overwrite Vm Snapshots? (#38)
Hello,
you can set how many/how long snapshots should be saved.
So if you set the value to one, after the new snapshot has been saved, the old one will be canceled. Is this what you are looking for?
Regards,
Ivan
Von: AbubakrSamsodien [mailto:notifications@github.com] Gesendet: Donnerstag, 16. März 2017 09:51 An: NAUbackup/VmBackup Cc: Subscribed Betreff: [NAUbackup/VmBackup] Possible to overwrite Vm Snapshots? (#38)
Im new to scripting, looking for a way to overwrite the exported snapshot instead of it creating /snapshot/BACKUP/(VM)/backup(date), i just want to remove (date) so that it doesnt make multiple VMs.
It has to overwrite the existing VM snapshot.
Everyone welcome to ask me questions if things are unclear.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/NAUbackup/VmBackup/issues/38 , or mute the thread https://github.com/notifications/unsubscribe-auth/ANCGDksHJtOnfDndLc3nUrBDVni8NU_tks5rmPfvgaJpZM4Me_ym . https://github.com/notifications/beacon/ANCGDrPlahf7r0nximQOUGhKBmgSO2kYks5rmPfvgaJpZM4Me_ym.gif
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/NAUbackup/VmBackup/issues/38#issuecomment-287011968, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AWP_gNgNwIPrUWRY0GUfp318y96PP-ZXks5rmQpagaJpZM4Me_ym.
It is at the beginning oft the script:
DEFAULT_MAX_BACKUPS = 4 (change to 1)
Regards, Ivan
Am 17. März 2017 08:47:44 MEZ schrieb AbubakrSamsodien notifications@github.com:
Hey
I trust you are well
If you have time, what line in the script do i have to config to overwrite my old backups?
kind regards
From: Ivan De Masi notifications@github.com Sent: 16 March 2017 10:09 AM To: NAUbackup/VmBackup Cc: AbubakrSamsodien; Author Subject: Re: [NAUbackup/VmBackup] Possible to overwrite Vm Snapshots? (#38)
Hello,
you can set how many/how long snapshots should be saved.
So if you set the value to one, after the new snapshot has been saved, the old one will be canceled. Is this what you are looking for?
Regards,
Ivan
Von: AbubakrSamsodien [mailto:notifications@github.com] Gesendet: Donnerstag, 16. März 2017 09:51 An: NAUbackup/VmBackup Cc: Subscribed Betreff: [NAUbackup/VmBackup] Possible to overwrite Vm Snapshots? (#38)
Im new to scripting, looking for a way to overwrite the exported snapshot instead of it creating /snapshot/BACKUP/(VM)/backup(date), i just want to remove (date) so that it doesnt make multiple VMs.
It has to overwrite the existing VM snapshot.
Everyone welcome to ask me questions if things are unclear.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/NAUbackup/VmBackup/issues/38 , or mute the thread https://github.com/notifications/unsubscribe-auth/ANCGDksHJtOnfDndLc3nUrBDVni8NU_tks5rmPfvgaJpZM4Me_ym . https://github.com/notifications/beacon/ANCGDrPlahf7r0nximQOUGhKBmgSO2kYks5rmPfvgaJpZM4Me_ym.gif
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/NAUbackup/VmBackup/issues/38#issuecomment-287011968, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AWP_gNgNwIPrUWRY0GUfp318y96PP-ZXks5rmQpagaJpZM4Me_ym.
-- You are receiving this because you commented. Reply to this email directly or view it on GitHub: https://github.com/NAUbackup/VmBackup/issues/38#issuecomment-287288786
-- Diese Nachricht wurde von meinem mobilen Gerät gesendet.
Line 51 ;-)
Regards,
Ivan
Von: AbubakrSamsodien [mailto:notifications@github.com] Gesendet: Freitag, 17. März 2017 08:48 An: NAUbackup/VmBackup Cc: Ivan De Masi; Comment Betreff: Re: [NAUbackup/VmBackup] Possible to overwrite Vm Snapshots? (#38)
Hey
I trust you are well
If you have time, what line in the script do i have to config to overwrite my old backups?
kind regards
From: Ivan De Masi < mailto:notifications@github.com notifications@github.com> Sent: 16 March 2017 10:09 AM To: NAUbackup/VmBackup Cc: AbubakrSamsodien; Author Subject: Re: [NAUbackup/VmBackup] Possible to overwrite Vm Snapshots? (#38)
Hello,
you can set how many/how long snapshots should be saved.
So if you set the value to one, after the new snapshot has been saved, the old one will be canceled. Is this what you are looking for?
Regards,
Ivan
Von: AbubakrSamsodien [mailto:notifications@github.com] Gesendet: Donnerstag, 16. März 2017 09:51 An: NAUbackup/VmBackup Cc: Subscribed Betreff: [NAUbackup/VmBackup] Possible to overwrite Vm Snapshots? (#38)
Im new to scripting, looking for a way to overwrite the exported snapshot instead of it creating /snapshot/BACKUP/(VM)/backup(date), i just want to remove (date) so that it doesnt make multiple VMs.
It has to overwrite the existing VM snapshot.
Everyone welcome to ask me questions if things are unclear.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub < https://github.com/NAUbackup/VmBackup/issues/38 https://github.com/NAUbackup/VmBackup/issues/38> , or mute the thread < https://github.com/notifications/unsubscribe-auth/ANCGDksHJtOnfDndLc3nUrBDVni8NU_tks5rmPfvgaJpZM4Me_ym https://github.com/notifications/unsubscribe-auth/ANCGDksHJtOnfDndLc3nUrBDVni8NU_tks5rmPfvgaJpZM4Me_ym> . < https://github.com/notifications/beacon/ANCGDrPlahf7r0nximQOUGhKBmgSO2kYks5rmPfvgaJpZM4Me_ym.gif https://github.com/notifications/beacon/ANCGDrPlahf7r0nximQOUGhKBmgSO2kYks5rmPfvgaJpZM4Me_ym.gif>
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub< https://github.com/NAUbackup/VmBackup/issues/38#issuecomment-287011968 https://github.com/NAUbackup/VmBackup/issues/38#issuecomment-287011968>, or mute the thread< https://github.com/notifications/unsubscribe-auth/AWP_gNgNwIPrUWRY0GUfp318y96PP-ZXks5rmQpagaJpZM4Me_ym https://github.com/notifications/unsubscribe-auth/AWP_gNgNwIPrUWRY0GUfp318y96PP-ZXks5rmQpagaJpZM4Me_ym>.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/NAUbackup/VmBackup/issues/38#issuecomment-287288786 , or mute the thread https://github.com/notifications/unsubscribe-auth/ANCGDogvwEEXeAa79n-IP97cMtc2_1Woks5rmjqggaJpZM4Me_ym . https://github.com/notifications/beacon/ANCGDun3wDDJT1QqWkGxRrM40_WTMWxHks5rmjqggaJpZM4Me_ym.gif
you are amazing!
have an awesome day
From: Ivan De Masi notifications@github.com Sent: 17 March 2017 08:11 AM To: NAUbackup/VmBackup Cc: AbubakrSamsodien; Author Subject: Re: [NAUbackup/VmBackup] Possible to overwrite Vm Snapshots? (#38)
It is at the beginning oft the script:
DEFAULT_MAX_BACKUPS = 4 (change to 1)
Regards, Ivan
Am 17. März 2017 08:47:44 MEZ schrieb AbubakrSamsodien notifications@github.com:
Hey
I trust you are well
If you have time, what line in the script do i have to config to overwrite my old backups?
kind regards
From: Ivan De Masi notifications@github.com Sent: 16 March 2017 10:09 AM To: NAUbackup/VmBackup Cc: AbubakrSamsodien; Author Subject: Re: [NAUbackup/VmBackup] Possible to overwrite Vm Snapshots? (#38)
Hello,
you can set how many/how long snapshots should be saved.
So if you set the value to one, after the new snapshot has been saved, the old one will be canceled. Is this what you are looking for?
Regards,
Ivan
Von: AbubakrSamsodien [mailto:notifications@github.com] Gesendet: Donnerstag, 16. März 2017 09:51 An: NAUbackup/VmBackup Cc: Subscribed Betreff: [NAUbackup/VmBackup] Possible to overwrite Vm Snapshots? (#38)
Im new to scripting, looking for a way to overwrite the exported snapshot instead of it creating /snapshot/BACKUP/(VM)/backup(date), i just want to remove (date) so that it doesnt make multiple VMs.
It has to overwrite the existing VM snapshot.
Everyone welcome to ask me questions if things are unclear.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/NAUbackup/VmBackup/issues/38 , or mute the thread https://github.com/notifications/unsubscribe-auth/ANCGDksHJtOnfDndLc3nUrBDVni8NU_tks5rmPfvgaJpZM4Me_ym . https://github.com/notifications/beacon/ANCGDrPlahf7r0nximQOUGhKBmgSO2kYks5rmPfvgaJpZM4Me_ym.gif
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/NAUbackup/VmBackup/issues/38#issuecomment-287011968, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AWP_gNgNwIPrUWRY0GUfp318y96PP-ZXks5rmQpagaJpZM4Me_ym.
-- You are receiving this because you commented. Reply to this email directly or view it on GitHub: https://github.com/NAUbackup/VmBackup/issues/38#issuecomment-287288786
-- Diese Nachricht wurde von meinem mobilen Gerät gesendet.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/NAUbackup/VmBackup/issues/38#issuecomment-287292573, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AWP_gLj5fr5RgTTEq6eq0IIYDmXEaTSiks5rmkBGgaJpZM4Me_ym.
Thanks, Ivan (blu-IT). That is indeed the best way to restrict the number of backups to just the current one (one copy).
Im new to scripting, looking for a way to overwrite the exported snapshot instead of it creating /snapshot/BACKUP/(VM)/backup(date), i just want to remove (date) so that it doesnt make multiple VMs.
It has to overwrite the existing VM snapshot.
Everyone welcome to ask me questions if things are unclear.