bbfsdev / bbfs

Big brother file system (distributed file system)
14 stars 5 forks source link

Update "backup_destination_folder" flag. #162

Closed bbfsdev closed 11 years ago

bbfsdev commented 11 years ago

Please don't use any more "backup_destination_folder".

On backup server, this path is taken from the list of monitoring_paths (the first one!!!).
monitoring_paths:
  - path: /mnt/storage/media/files
    scan_period: 300
    stable_state: 2
  - path: /mnt/storage/media/audio
    scan_period: 300
    stable_state: 2
  - path: /mnt/storage/media/video
    scan_period: 300
    stable_state: 2
vshiray commented 11 years ago

It's better to have a separate configuration parameter.

yarondbb commented 11 years ago

I agree with Shiray,

Also Is it OK if scan_period and stable state will be shared among ALL dirs? For example: monitoring_scan_period: 300 monitoring_stable_state: 2 monitoring_paths:

yarondbb commented 11 years ago

Sorry the example text did not show well - trying again..

For example: monitoring_scan_period: 300 monitoring_stable_state: 2 monitoring_paths:

yarondbb commented 11 years ago

no.. I will remove some chars:

monitoring_scan_period: 300 monitoring_stable_state: 2 monitoring_paths:

path: /mnt/storage/media/files path: /mnt/storage/media/audio path: /mnt/storage/media/video backup_destination_path: path_to_dest # This path is also monitored (using scan priod and stable state)

yarondbb commented 11 years ago

done: new paramtere format example (a hash format)

backup_destination_folder: path: ~\Ruby\Git\TestRoundClock\backup_server_root # Directory to backup file and monitor. scan_period: 5 # Number of seconds before initiating another directory scan. stable_state: 1 # Number of scan times for a file to be unchanged before his state becomes stable.

yarondbb commented 11 years ago

Committed to release_1_1_0 branch