After replying I am thinking I could create a backup user and use it as a "global" backup. The scrip could be owned by the backup user with 700 permissions. Interesting idea. I'm thinking this may be more secure. Any feedback is much appreciated. Keith On 2023-12-21 06:39, Keith Smith via PLUG-discuss wrote: > Hi Steve, > > Backing up to a USB backup drive is very cool. > > After looking at the code and it's setup I realized that I have it > configured on the vhost and is owned by the vhost user and it is > automated with the vhost user's cron. That answered my question. > > Basically what I did was use the AWS S3 PHP SDK to create a PHP script > that tars the content on the file system and pulls the DB data and tars > it as well and then uploads those tar balls to a bucket in my S3 > account. > > AWS has done a good job of documenting the AWS S3 PHP SDK... they may > have provided too much documentation which means having to read and > understand a lot of stuff to get to the nugget one needs. > > Keith > > > On 2023-12-20 23:39, Steve Litt via PLUG-discuss wrote: >> Keith Smith via PLUG-discuss said on Tue, 19 Dec 2023 12:21:35 -0700 >> >>> Hi, >>> >>> I have been using the AWS S3 PHP SDK to backup my web content for >>> maybe 12 years. I'm revisiting it. >>> >>> I'm thinking that it might be more secure to create a backup user for >>> just this process. The credentials would be stored in the backup >>> user's home directory, the script would be owned by the backup user, >>> and the cron would be that backup user's cron. >>> >>> Am I on the right path and is there something else I should be >>> looking >>> at? >> >> Hi Keith, >> >> I'm not quite sure what your preceding two paragraphs mean, but I have >> a home-brew backup script that backs my box up to a USB3 interfaced >> spinning rust drive. I have several such drives, some of which are in >> a >> bank vault at any given time. >> >> This system has been working well for me. >> >> HTH, >> >> SteveT >> >> Steve Litt >> >> Autumn 2023 featured book: Rapid Learning for the 21st Century >> http://www.troubleshooters.com/rl21 >> --------------------------------------------------- >> PLUG-discuss mailing list: PLUG-discuss@lists.phxlinux.org >> To subscribe, unsubscribe, or to change your mail settings: >> https://lists.phxlinux.org/mailman/listinfo/plug-discuss > --------------------------------------------------- > PLUG-discuss mailing list: PLUG-discuss@lists.phxlinux.org > To subscribe, unsubscribe, or to change your mail settings: > https://lists.phxlinux.org/mailman/listinfo/plug-discuss --------------------------------------------------- PLUG-discuss mailing list: PLUG-discuss@lists.phxlinux.org To subscribe, unsubscribe, or to change your mail settings: https://lists.phxlinux.org/mailman/listinfo/plug-discuss