Announcement

Collapse
No announcement yet.

Server automation and script tricks - share your favs...

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #16
    Originally posted by oshunluvr View Post
    I'll post back the results again next week and the week after to verify the backups are working properly (keeping one old one) and the time stamps are good.
    Well, it been several weeks and my script is working wonderfully. Here's the proof:
    Code:
    [FONT=monospace]smith@server:/mnt/pool2$ ll /mnt/sde2
    total 16
    drwxr-xr-x 1 root root 268 Nov 19 04:54 [COLOR=#5454FF][B].[/B][/COLOR][COLOR=#000000]/[/COLOR]
    drwxr-xr-x 1 root root 134 Nov 13 16:17 [COLOR=#5454FF][B]..[/B][/COLOR][COLOR=#000000]/[/COLOR]
    drwxr-xr-x 1 root root 226 Oct 30 10:04 [COLOR=#5454FF][B]@Kubuntu_15_10[/B][/COLOR][COLOR=#000000]/[/COLOR]
    drwxr-xr-x 1 root root  30 Mar  6  2017 [COLOR=#5454FF][B]@Kubuntu_15_10_home[/B][/COLOR][COLOR=#000000]/[/COLOR]
    drwxr-xr-x 1 root root 292 Oct 31 06:27 [COLOR=#5454FF][B]@Ubuntu_Server_14_04[/B][/COLOR][COLOR=#000000]/[/COLOR]
    drwxr-xr-x 1 root root 292 Nov 17 04:30 [COLOR=#5454FF][B]@Ubuntu_Server_14_04_171117[/B][/COLOR][COLOR=#000000]/[/COLOR]
    drwxr-xr-x 1 root root 292 Nov 18 04:30 [COLOR=#5454FF][B]@Ubuntu_Server_14_04_171118[/B][/COLOR][COLOR=#000000]/[/COLOR]
    drwxr-xr-x 1 root root 292 Nov 19 04:30 [COLOR=#5454FF][B]@Ubuntu_Server_14_04_171119[/B][/COLOR][COLOR=#000000]/[/COLOR]
    [/FONT][COLOR=#000000][FONT=monospace]smith@server:/mnt/pool2$ ll /mnt/sdb2 [/FONT][/COLOR]
    [FONT=monospace]total 16 [/FONT]
    [FONT=monospace]drwxr-xr-x 1 root root  94 Nov 19 04:54 [/FONT][COLOR=#5454FF][FONT=monospace][B].[/B][/FONT][/COLOR][COLOR=#000000][FONT=monospace]/ [/FONT][/COLOR]
    [FONT=monospace]drwxr-xr-x 1 root root 134 Nov 13 16:17 [/FONT][COLOR=#5454FF][FONT=monospace][B]..[/B][/FONT][/COLOR][COLOR=#000000][FONT=monospace]/ [/FONT][/COLOR]
    [FONT=monospace]drwxr-xr-x 1 root root 292 Nov 19 04:41 [/FONT][COLOR=#5454FF][FONT=monospace][B]@Ubuntu_Server_14_04[/B][/FONT][/COLOR][COLOR=#000000][FONT=monospace]/ [/FONT][/COLOR]
    [FONT=monospace]drwxr-xr-x 1 root root 292 Nov 12 04:40 [/FONT][COLOR=#5454FF][FONT=monospace][B]@Ubuntu_Server_14_04_171112[/B][/FONT][/COLOR][COLOR=#000000][FONT=monospace]/ [/FONT][/COLOR][FONT=monospace]
    smith@server:/mnt/pool2$ ll /mnt/sdd2
    total 16
    drwxr-xr-x 1 root root  94 Nov 19 04:54 [COLOR=#5454FF][B].[/B][/COLOR][COLOR=#000000]/[/COLOR]
    drwxr-xr-x 1 root root 134 Nov 13 16:17 [COLOR=#5454FF][B]..[/B][/COLOR][COLOR=#000000]/[/COLOR]
    drwxr-xr-x 1 root root 292 Nov 19 04:54 [COLOR=#5454FF][B]@Ubuntu_Server_14_04[/B][/COLOR][COLOR=#000000]/[/COLOR]
    drwxr-xr-x 1 root root 292 Nov 12 04:49 [COLOR=#5454FF][B]@Ubuntu_Server_14_04_171112[/B][/COLOR][COLOR=#000000]/[/COLOR][/FONT]
    I have it set to run at 4:30 am on Sunday. You can see by the time stamps that three and only three daily snapshots are in the main file system and each of the two backup file systems has a backup dated today and one from last Sunday. You can even tell by the time stamps how long it took to send the backups. I haven't touched the script in three weeks so it's running swimmingly. Awesome if I say so myself.

    Please Read Me

    Comment

    Working...
    X