Skip to main content
  1. Posts/

How to Automate Using N8n

·187 words·1 min
N8n
Table of Contents

WIP will add how to automate the server to start and stop. #

Hello! Last week I learn’t how to automate using n8n. I used n8n to automate my server to start, stop and backup.

STEPS BACKUP VERSION: #

  1. First we have to identify what you wan to achieve for example how to backup a server.

  2. Identify how you would do it manually, first turn the server on wherever you put it in this case I used xoa (xen orchestra). Then ssh or login as a user, open a terminal and run the code.

  3. However, you need to use sudo command. Configure a file where it allows that specific user to use a sudo command without login in.

  4. Go to n8n and start a new project we need to use a execution command that allows the project to run. Add a note or the (+ go to the side)

  5. Type in the command you are running in this case: sudo dnf update -y

  6. EXTENSION: Add a trigger button to specify how often (daily, weekly, monthly, yearly) and what time you want to run this automation.

That’s all :)