Why isn’t my backup script copying to pCloud and my external drive?

0
1
Asked By CodingEnthusiast42 On

I'm trying to learn some basic shell scripting and I generated a backup script with ChatGPT to help me back up files that were changed in the last week from certain folders in my Home and Google MyDrive folders to pCloud and an external hard drive. The script zips everything up into a tar file, but it doesn't seem to copy that file over to pCloud or my external drive, and there are no error messages or logs indicating what's going wrong. I'd appreciate any insight! Here's the code for reference: [script code].

1 Answer

Answered By CuriousCoder99 On

It sounds like you might be putting a lot of faith in the script generated by an AI, which can be risky, especially for important data. I suggest checking out a more beginner-friendly script that can help you understand each part as you go. Here’s a link to a basic backup script tutorial: https://discourse.ubuntu.com/t/basic-backup-shell-script/36419. It’s a good starting point!

LearningInProgress -

Yeah, I totally see that. I'm using it more as a tool to learn from rather than trusting it completely. It's just easier for me to apply concepts to something concrete!

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.