Ask Your Question

Take backup of multiple directories/folders in Solaris/AIX. Both source and backup folders should be in sync always..!

asked 2017-07-18 00:11:18 -0500

rohithmn03 gravatar image

Hi Team,

This is what i am trying to achieve..!

1) There are 2 directories on unix test server.
2) Need a backup of all the subfolders and files under it.
3) If some files get modified from source, puppet should copy the changed file to the backup location.
4) So, at any point in time, both the backup and source should be in sync

I thought of using rsync command. But on these rsync is not installed. Are there any resourcetype in puupet that address my requirement..!?

edit retag flag offensive close merge delete


wouldn't git be good for this depending on the size I guess. Just commit the changes in the one and us puppet to pull in your backup folder.

negast gravatar imagenegast ( 2017-07-18 04:10:25 -0500 )edit

Your requirement of 'in sync always' means you really want a distributed filesystem. the most puppet will be able to do directly is manage the sync each time puppet runs, or have puppet set up a cron to do any syncing you require

DarylW gravatar imageDarylW ( 2017-07-24 08:06:00 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2017-07-24 05:51:23 -0500

there is a puppet rsync module which looks good, however looking at the code for it I believe it uses rsync under the hood so you would need to install that, however isnt it a waste of space having two directories exactly the same - as @negast says - maybe using git is a better option - this would also give you historical files and version control.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2017-07-18 00:11:18 -0500

Seen: 39 times

Last updated: Jul 24